Add an additional way to fetch the basepath (See pull request 2161)
This commit is contained in:
parent
29e9a7947e
commit
d7fc8d7c12
1 changed files with 3 additions and 0 deletions
3
boot.php
3
boot.php
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue