Browse Source

Revert "Core\Router: Fix for dynamic files in the forum root"

This reverts commit d4969ae0097b70ca6913404b11e2c4f34c47a6de.
Visman 1 năm trước cách đây
mục cha
commit
c648a52651
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/Core/Router.php

+ 1 - 1
app/Core/Router.php

@@ -234,7 +234,7 @@ class Router
         }
 
         $pos  = \strpos($uri, '/', 1);
-        $base = false === $pos ? '/' /* $uri */ : \substr($uri, 0, $pos);
+        $base = false === $pos ? $uri : \substr($uri, 0, $pos);
 
         if (isset($this->dynamic[$base])) {
             foreach ($this->dynamic[$base] as $pattern => $data) {