]> git.mxchange.org Git - friendica.git/commitdiff
Avoid problems with wrong configured server variables
authorMichael Vogel <icarus@dabo.de>
Tue, 8 Dec 2015 18:53:01 +0000 (19:53 +0100)
committerMichael Vogel <icarus@dabo.de>
Tue, 8 Dec 2015 18:53:01 +0000 (19:53 +0100)
boot.php

index 6759e805f245ab4e994278d6b98a5885ee3c4277..05a334a1fa50ddd33ef1fb08a4194dbebcdb7e6d 100644 (file)
--- 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);
                }