]> git.mxchange.org Git - friendica.git/blobdiff - src/App.php
Add PHP 5 compatible recursive dirname()
[friendica.git] / src / App.php
index 45d743b0d61d55e5899f3a88b8f26b66f7bb776a..261c3e74cb6f970701ae11281c929905470a3fbd 100644 (file)
@@ -523,7 +523,7 @@ class App
                if (!empty($relative_script_path)) {
                        // Module
                        if (!empty($_SERVER['QUERY_STRING'])) {
-                               $path = trim(dirname($relative_script_path, substr_count(trim($_SERVER['QUERY_STRING'], '/'), '/') + 1), '/');
+                               $path = trim(rdirname($relative_script_path, substr_count(trim($_SERVER['QUERY_STRING'], '/'), '/') + 1), '/');
                        } else {
                                // Root page
                                $path = trim($relative_script_path, '/');