diff --git a/index.php b/index.php index 6baf26f12..ba1244dcd 100644 --- a/index.php +++ b/index.php @@ -120,7 +120,7 @@ if(! x($_SESSION,'sysmsg_info')) if($install) - $a->module = 'install'; + $a->module = 'setup'; else check_config($a); diff --git a/install/testargs.php b/install/testargs.php index a8af836d0..4c9bce4e9 100644 --- a/install/testargs.php +++ b/install/testargs.php @@ -15,7 +15,7 @@ */ -if((argc() > 1) && isset(argv(1))) +if(($argc > 1) && isset($argv[1])) echo $argv[1]; else echo ''; diff --git a/mod/install.php b/mod/setup.php similarity index 98% rename from mod/install.php rename to mod/setup.php index 82c58d467..e6b8e852a 100755 --- a/mod/install.php +++ b/mod/setup.php @@ -3,9 +3,9 @@ $install_wizard_pass=1; -function install_init(&$a){ +function setup_init(&$a){ - // $baseurl/install/testrwrite to test if rewite in .htaccess is working + // $baseurl/setup/testrwrite to test if rewite in .htaccess is working if (argc() ==2 && argv(1)=="testrewrite") { echo "ok"; killme(); @@ -16,7 +16,7 @@ function install_init(&$a){ } -function install_post(&$a) { +function setup_post(&$a) { global $install_wizard_pass, $db; switch($install_wizard_pass) { @@ -113,7 +113,7 @@ function get_db_errno() { return mysql_errno(); } -function install_content(&$a) { +function setup_content(&$a) { global $install_wizard_pass, $db; $o = ''; @@ -439,7 +439,7 @@ function check_htaccess(&$checks) { $status = true; $help = ""; if (function_exists('curl_init')){ - $test = fetch_url($a->get_baseurl()."/install/testrewrite"); + $test = fetch_url($a->get_baseurl()."/setup/testrewrite"); if ($test!="ok") { $status = false; $help = t('Url rewrite in .htaccess is not working. Check your server configuration.'); diff --git a/view/tpl/install_checks.tpl b/view/tpl/install_checks.tpl index 176611d4b..1d8a4b263 100644 --- a/view/tpl/install_checks.tpl +++ b/view/tpl/install_checks.tpl @@ -1,6 +1,6 @@