]> git.mxchange.org Git - friendica.git/commitdiff
Add an additional way to fetch the basepath (See pull request 2161)
authorMichael Vogel <icarus@dabo.de>
Tue, 8 Dec 2015 07:17:29 +0000 (08:17 +0100)
committerMichael Vogel <icarus@dabo.de>
Tue, 8 Dec 2015 07:17:29 +0000 (08:17 +0100)
boot.php

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