Merge pull request #2162 from annando/1512-basepath

Add an additional way to fetch the basepath (See pull request 2161)
This commit is contained in:
fabrixxm 2015-12-08 09:08:48 +01:00
commit 5d04818df7

View File

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