diff --git a/Admin/Routes/Web/Backend.php b/Admin/Routes/Web/Backend.php index c51ff61..0ecd1e2 100755 --- a/Admin/Routes/Web/Backend.php +++ b/Admin/Routes/Web/Backend.php @@ -18,7 +18,7 @@ use phpOMS\Router\RouteVerb; return [ - '^.*/profile.*$' => [ + '^.*/profile\?.*$' => [ [ 'dest' => '\Modules\Profile\Controller\BackendController:setupProfileStyles', 'verb' => RouteVerb::GET, diff --git a/tests/Autoloader.php b/tests/Autoloader.php index 80a0a1e..d2d0080 100755 --- a/tests/Autoloader.php +++ b/tests/Autoloader.php @@ -71,14 +71,12 @@ public static function addPath(string $path) : void * * @return void * - * @throws AutoloadException Throws this exception if the class to autoload doesn't exist. This could also be related to a wrong namespace/file path correlation. - * * @since 1.0.0 */ public static function defaultAutoloader(string $class) : void { $class = \ltrim($class, '\\'); - $class = \str_replace(['_', '\\'], '/', $class); + $class = \strtr($class, '_\\', '//'); foreach (self::$paths as $path) { $file = $path . $class . '.php';