From c7966b7c559518fc5bf95b49de681a494aeae69d Mon Sep 17 00:00:00 2001 From: slawkens Date: Sat, 26 Aug 2023 07:12:15 +0200 Subject: [PATCH] Update plugins.php --- system/libs/plugins.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/libs/plugins.php b/system/libs/plugins.php index 7676c129..6b0a991e 100644 --- a/system/libs/plugins.php +++ b/system/libs/plugins.php @@ -151,7 +151,7 @@ class Plugins { foreach(self::getAllPluginsJson() as $plugin) { if (isset($plugin['hooks'])) { foreach ($plugin['hooks'] as $_name => $info) { - if (str_contains($info['type'], 'HOOK_')) { + if (strpos($info['type'], 'HOOK_') !== false) { $info['type'] = str_replace('HOOK_', '', $info['type']); }