include config.php before define()ing settings, so that config.php can control them
This commit is contained in:
parent
6d3cdb208c
commit
2f9979c790
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;"
|
* 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
|
// set up and purify the environment
|
||||||
define("DEBUG", true);
|
define("DEBUG", true);
|
||||||
define("COVERAGE", true);
|
define("COVERAGE", true);
|
||||||
@ -62,12 +68,6 @@ define("COOKIE_PREFIX", 'shm');
|
|||||||
define("SPEED_HAX", false);
|
define("SPEED_HAX", false);
|
||||||
define("FORCE_NICE_URLS", 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 "core/util.inc.php";
|
||||||
require_once "lib/context.php";
|
require_once "lib/context.php";
|
||||||
if(CONTEXT) {
|
if(CONTEXT) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user