From 73b4e0552d11fdc53c0154ee6d2ebe18020bb95e Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 30 Jun 2018 11:11:22 -0400 Subject: [PATCH] Fix wrong urlpath determination --- src/App.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/App.php b/src/App.php index d35b497c2a..1eca4329f5 100644 --- a/src/App.php +++ b/src/App.php @@ -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(); -- 2.39.5