Ensure PROJECT_ROOT is defined
This commit is contained in:
parent
edb12399ce
commit
0413b998e8
|
|
@ -30,15 +30,17 @@
|
||||||
set_include_path($conf['document.root']);
|
set_include_path($conf['document.root']);
|
||||||
|
|
||||||
//set the server variables and define project path constant
|
//set the server variables and define project path constant
|
||||||
$_SERVER["DOCUMENT_ROOT"] = $conf['document.root'];
|
$_SERVER["DOCUMENT_ROOT"] = $conf['document.root'];
|
||||||
$_SERVER["PROJECT_PATH"] = $conf['project.path'];
|
$_SERVER["PROJECT_ROOT"] = $conf['document.root'];
|
||||||
if (isset($conf['project.path'])) {
|
if (isset($conf['project.path'])) {
|
||||||
$_SERVER["PROJECT_ROOT"] = $conf['document.root'].$conf['project.path'];
|
$_SERVER["PROJECT_ROOT"] = $conf['document.root'].'/'.$conf['project.path'];
|
||||||
}
|
define("PROJECT_ROOT", $conf['document.root'].'/'.$conf['project.path']);
|
||||||
else {
|
define("PROJECT_PATH", $conf['project.path']);
|
||||||
$_SERVER["PROJECT_ROOT"] = $conf['document.root'];
|
}
|
||||||
}
|
else {
|
||||||
define("PROJECT_PATH", $conf['project.path']);
|
define("PROJECT_ROOT", $conf['document.root']);
|
||||||
|
define("PROJECT_PATH", $conf['document.root']);
|
||||||
|
}
|
||||||
|
|
||||||
//set the error reporting
|
//set the error reporting
|
||||||
ini_set('display_errors', '1');
|
ini_set('display_errors', '1');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue