From: Michael Vogel Date: Tue, 8 Dec 2015 07:17:29 +0000 (+0100) Subject: Add an additional way to fetch the basepath (See pull request 2161) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d7fc8d7c127ac64db4eb2d604f7c31512b3f7716;p=friendica.git Add an additional way to fetch the basepath (See pull request 2161) --- diff --git a/boot.php b/boot.php index 0f4cacb5fd..6759e805f2 100644 --- a/boot.php +++ b/boot.php @@ -640,6 +640,9 @@ if(! class_exists('App')) { if ($basepath == "") $basepath = $_SERVER["PWD"]; + if ($basepath == "") + $basepath = dirname(__FILE__); + return($basepath); }