Merge pull request #2164 from annando/1512-basepath-2
Avoid problems with wrong configured server variables
This commit is contained in:
commit
679ae1c035
6
boot.php
6
boot.php
|
@ -634,15 +634,15 @@ if(! class_exists('App')) {
|
|||
|
||||
$basepath = get_config("system", "basepath");
|
||||
|
||||
if ($basepath == "")
|
||||
$basepath = dirname(__FILE__);
|
||||
|
||||
if ($basepath == "")
|
||||
$basepath = $_SERVER["DOCUMENT_ROOT"];
|
||||
|
||||
if ($basepath == "")
|
||||
$basepath = $_SERVER["PWD"];
|
||||
|
||||
if ($basepath == "")
|
||||
$basepath = dirname(__FILE__);
|
||||
|
||||
return($basepath);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user