mirror of
https://github.com/friendica/friendica
synced 2024-11-10 09:42:54 +00:00
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:
commit
5d04818df7
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 == "")
|
||||
$basepath = $_SERVER["PWD"];
|
||||
|
||||
if ($basepath == "")
|
||||
$basepath = dirname(__FILE__);
|
||||
|
||||
return($basepath);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue