Update require.php
This commit is contained in:
parent
0413b998e8
commit
fd0615587e
|
|
@ -32,6 +32,7 @@
|
||||||
//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_ROOT"] = $conf['document.root'];
|
$_SERVER["PROJECT_ROOT"] = $conf['document.root'];
|
||||||
|
$_SERVER["PROJECT_PATH"] = $conf['project.path'];
|
||||||
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']);
|
define("PROJECT_ROOT", $conf['document.root'].'/'.$conf['project.path']);
|
||||||
|
|
@ -39,7 +40,7 @@
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
define("PROJECT_ROOT", $conf['document.root']);
|
define("PROJECT_ROOT", $conf['document.root']);
|
||||||
define("PROJECT_PATH", $conf['document.root']);
|
define("PROJECT_PATH", '');
|
||||||
}
|
}
|
||||||
|
|
||||||
//set the error reporting
|
//set the error reporting
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue