diff --git a/system/libs/plugins.php b/system/libs/plugins.php index 9bf8bdd0..595b2d44 100644 --- a/system/libs/plugins.php +++ b/system/libs/plugins.php @@ -74,7 +74,7 @@ class Plugins { if (isset($plugin['hooks'])) { foreach ($plugin['hooks'] as $_name => $info) { if (defined('HOOK_'. $info['type'])) { - if (str_contains($info['type'], 'HOOK_')) { + if (strpos($info['type'], 'HOOK_') !== false) { $info['type'] = str_replace('HOOK_', '', $info['type']); }