summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-13 01:14:31 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-13 01:14:31 +0000
commit1fb620ff87e905ba09ee48f5ec004621361a5448 (patch)
tree93b8a4e5d301e35f2e1c9b15418be390c47a92cd
parentff6791f57652aecfe5d3b43848b0a63f4307fa35 (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.php7
1 files changed, 2 insertions, 5 deletions
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.