include config.php before define()ing settings, so that config.php can control them
This commit is contained in:
parent
6d3cdb208c
commit
2f9979c790
1 changed files with 6 additions and 6 deletions
12
index.php
12
index.php
|
@ -50,6 +50,12 @@
|
|||
* Each of these can be imported at the start of a function with eg "global $page, $user;"
|
||||
*/
|
||||
|
||||
if(empty($database_dsn) && !file_exists("config.php")) {
|
||||
header("Location: install.php");
|
||||
exit;
|
||||
}
|
||||
require_once "config.php";
|
||||
|
||||
// set up and purify the environment
|
||||
define("DEBUG", true);
|
||||
define("COVERAGE", true);
|
||||
|
@ -62,12 +68,6 @@ define("COOKIE_PREFIX", 'shm');
|
|||
define("SPEED_HAX", false);
|
||||
define("FORCE_NICE_URLS", false);
|
||||
|
||||
if(empty($database_dsn) && !file_exists("config.php")) {
|
||||
header("Location: install.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
require_once "config.php";
|
||||
require_once "core/util.inc.php";
|
||||
require_once "lib/context.php";
|
||||
if(CONTEXT) {
|
||||
|
|
Reference in a new issue