]> git.mxchange.org Git - friendica.git/commitdiff
Fix wrong urlpath determination
authorHypolite Petovan <mrpetovan@gmail.com>
Sat, 30 Jun 2018 15:11:22 +0000 (11:11 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Mon, 16 Jul 2018 23:38:14 +0000 (19:38 -0400)
src/App.php

index d35b497c2aaafcea1209b019daedb40af8b1bbc5..1eca4329f5146a3e7cdba8e1e78a80d2c2c21de7 100644 (file)
@@ -143,14 +143,15 @@ class App
 
                $this->basepath = rtrim($basepath, DIRECTORY_SEPARATOR);
 
-               $this->determineUrlPath();
-
+               // The order of the following calls is important to ensure proper initialization
                $this->loadConfigFiles();
 
                $this->loadDatabase();
 
                $this->determineMode();
 
+               $this->determineUrlPath();
+
                if ($this->mode === self::MODE_NORMAL) {
                        Core\Addon::loadHooks();