diff --git a/system/libs/plugins.php b/system/libs/plugins.php index f794552c..9bf8bdd0 100644 --- a/system/libs/plugins.php +++ b/system/libs/plugins.php @@ -74,6 +74,10 @@ class Plugins { if (isset($plugin['hooks'])) { foreach ($plugin['hooks'] as $_name => $info) { if (defined('HOOK_'. $info['type'])) { + if (str_contains($info['type'], 'HOOK_')) { + $info['type'] = str_replace('HOOK_', '', $info['type']); + } + $hook = constant('HOOK_'. $info['type']); $hooks[] = ['name' => $_name, 'type' => $hook, 'file' => $info['file']]; } else {