Add an additional way to fetch the basepath (See pull request 2161)

This commit is contained in:
Michael Vogel 2015-12-08 08:17:29 +01:00
parent 29e9a7947e
commit d7fc8d7c12

View File

@ -640,6 +640,9 @@ if(! class_exists('App')) {
if ($basepath == "") if ($basepath == "")
$basepath = $_SERVER["PWD"]; $basepath = $_SERVER["PWD"];
if ($basepath == "")
$basepath = dirname(__FILE__);
return($basepath); return($basepath);
} }