Avoid problems with wrong configured server variables

This commit is contained in:
Michael Vogel 2015-12-08 19:53:01 +01:00
parent 5d04818df7
commit 57576e09ed

View File

@ -634,15 +634,15 @@ if(! class_exists('App')) {
$basepath = get_config("system", "basepath"); $basepath = get_config("system", "basepath");
if ($basepath == "")
$basepath = dirname(__FILE__);
if ($basepath == "") if ($basepath == "")
$basepath = $_SERVER["DOCUMENT_ROOT"]; $basepath = $_SERVER["DOCUMENT_ROOT"];
if ($basepath == "") if ($basepath == "")
$basepath = $_SERVER["PWD"]; $basepath = $_SERVER["PWD"];
if ($basepath == "")
$basepath = dirname(__FILE__);
return($basepath); return($basepath);
} }