From 65fef3f1427b049b9d091ad8f5d13deadb01c996 Mon Sep 17 00:00:00 2001 From: Jon Stovell Date: Sat, 15 Feb 2025 13:15:01 -0700 Subject: [PATCH] =?UTF-8?q?integrate=5Fparse=5Froute=20=E2=86=92=20integra?= =?UTF-8?q?te=5Froute=5Fparsers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jon Stovell --- Sources/QueryString.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Sources/QueryString.php b/Sources/QueryString.php index 3ca0f08ce4..b68090812c 100644 --- a/Sources/QueryString.php +++ b/Sources/QueryString.php @@ -213,6 +213,9 @@ public static function cleanRequest(): void } } + // Let mods add new route parsers to self::$route_parsers. + IntegrationHook::call('integrate_route_parsers'); + // Are we using routing (a.k.a. queryless/friendly/pretty URLs)? $_GET = self::parseRoute($_SERVER['PATH_INFO'] ?? '', $_GET); @@ -651,10 +654,6 @@ public static function buildRoute(array|string $params): string */ public static function parseRoute(string $path, array $params): array { - // Give mods a chance to parse the route before we do anything to it. - // This hook can also be used add new route parsers to self::$route_parsers. - IntegrationHook::call('integrate_parse_route', [&$path, &$params]); - if (!str_starts_with($path, '/')) { return $params; }