Explorar el Código

Fix namespace for constants

Visman hace 4 años
padre
commit
328d65465d
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      app/Core/Router.php

+ 3 - 3
app/Core/Router.php

@@ -83,8 +83,8 @@ class Router
     {
         $this->baseUrl = $base;
         $this->csrf    = $csrf;
-        $this->host    = \parse_url($base, PHP_URL_HOST);
-        $this->prefix  = \parse_url($base, PHP_URL_PATH);
+        $this->host    = \parse_url($base, \PHP_URL_HOST);
+        $this->prefix  = \parse_url($base, \PHP_URL_PATH);
         $this->length  = \strlen($this->prefix);
     }
 
@@ -95,7 +95,7 @@ class Router
     {
         if (
             \is_string($url)
-            && \parse_url($url, PHP_URL_HOST) === $this->host
+            && \parse_url($url, \PHP_URL_HOST) === $this->host
             && ($route = $this->route('GET', \rawurldecode(\parse_url($url, \PHP_URL_PATH))))
             && self::OK === $route[0]
         ) {