]> git.mxchange.org Git - friendica.git/blobdiff - boot.php
Avoid problems with wrong configured server variables
[friendica.git] / 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);
                }