From: Michael Vogel Date: Tue, 8 Dec 2015 18:53:01 +0000 (+0100) Subject: Avoid problems with wrong configured server variables X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=57576e09ed0897f414a48491c14a8abc842a095d;p=friendica.git Avoid problems with wrong configured server variables --- diff --git a/boot.php b/boot.php index 6759e805f2..05a334a1fa 100644 --- a/boot.php +++ b/boot.php @@ -635,13 +635,13 @@ if(! class_exists('App')) { $basepath = get_config("system", "basepath"); if ($basepath == "") - $basepath = $_SERVER["DOCUMENT_ROOT"]; + $basepath = dirname(__FILE__); if ($basepath == "") - $basepath = $_SERVER["PWD"]; + $basepath = $_SERVER["DOCUMENT_ROOT"]; if ($basepath == "") - $basepath = dirname(__FILE__); + $basepath = $_SERVER["PWD"]; return($basepath); }