From 1fb620ff87e905ba09ee48f5ec004621361a5448 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 13 Jan 2009 01:14:31 +0000 Subject: Redirect to the installer if we don't have a var dir. This way the installer gets a fresh request and doesn't carry anything forward from the production environment. --- index.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index e68d1926..e9a0a41b 100644 --- a/index.php +++ b/index.php @@ -46,11 +46,8 @@ define('THEMEPATH', strtr(realpath('themes') . '/', DIRECTORY_SEPARATOR, '/')); define('SYSPATH', strtr(realpath('kohana') . '/', DIRECTORY_SEPARATOR, '/')); if (!file_exists('var')) { - include DOCROOT . "installer/helpers/installer.php"; - if (!installer::environment_check()) { - installer::display_requirements(); - die; - } + // Run the installer + header("Location: installer/install.php"); } // Force a test run if we're in command line mode. -- cgit v1.2.3