mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-18 21:05:01 -04:00
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.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user