diff --git a/system/src/Plugins.php b/system/src/Plugins.php index f9d4d5ce..4acca75e 100644 --- a/system/src/Plugins.php +++ b/system/src/Plugins.php @@ -198,6 +198,9 @@ class Plugins { } } + global $hooks; + $hooks->triggerFilter(HOOK_FILTER_ROUTES, $routes); + usort($routes, function ($a, $b) { // key 3 is priority diff --git a/system/src/global.php b/system/src/global.php index ed9df203..62366c1c 100644 --- a/system/src/global.php +++ b/system/src/global.php @@ -98,6 +98,7 @@ define('HOOK_INSTALL_FINISH', ++$i); define('HOOK_INSTALL_FINISH_END', ++$i); // hook filters +define('HOOK_FILTER_ROUTES', ++$i); define('HOOK_FILTER_TWIG_DISPLAY', ++$i); define('HOOK_FILTER_TWIG_RENDER', ++$i); define('HOOK_FILTER_THEME_FOOTER', ++$i);