# HG changeset patch # User Dan # Date 1216764054 18000 # Node ID 3ea1c552e73400dc05590362e3f9aec049e49adb # Parent 26ce2694d43f48155f5da6a143bb4c9342397938 Fixed installer path check in Admin:Home; made admin-menu more compatible with componentized JS diff -r 26ce2694d43f -r 3ea1c552e734 plugins/SpecialAdmin.php --- a/plugins/SpecialAdmin.php Tue Jul 22 15:07:14 2008 -0500 +++ b/plugins/SpecialAdmin.php Tue Jul 22 17:00:54 2008 -0500 @@ -70,6 +70,8 @@ // Set the theme $session->theme = 'admin'; $session->style = 'default'; + + $template->add_header(''); } } @@ -138,7 +140,7 @@ } // Check for the installer scripts - if( ( file_exists(ENANO_ROOT.'/install.php') || file_exists(ENANO_ROOT.'/schema.sql') ) && !defined('ENANO_DEMO_MODE') ) + if( file_exists(ENANO_ROOT.'/install/install.php') && !defined('ENANO_DEMO_MODE') ) { echo '
' . $lang->get('acphome_msg_install_files') . ' @@ -2019,7 +2021,6 @@ } else { - $template->add_header(''); if( !isset( $_GET['noheaders'] ) ) { $template->header(); @@ -2153,10 +2154,10 @@
@@ -2182,7 +2183,7 @@ $paths->cpage['module'] = $_GET['module']; if ( function_exists($fname) && $_GET['module'] != $paths->nslist['Special'] . 'Administration' ) { - eval($fname.'();'); + call_user_func($fname); } } else @@ -2192,10 +2193,14 @@ ?>