diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-01-13 01:14:31 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-13 01:14:31 +0000 |
commit | 1fb620ff87e905ba09ee48f5ec004621361a5448 (patch) | |
tree | 93b8a4e5d301e35f2e1c9b15418be390c47a92cd | |
parent | ff6791f57652aecfe5d3b43848b0a63f4307fa35 (diff) |
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.
-rw-r--r-- | index.php | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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. |