From 8ea78a5852039f2a31a07e83090404074be3ab2c Mon Sep 17 00:00:00 2001 From: slawkens Date: Fri, 25 Aug 2023 20:45:45 +0200 Subject: [PATCH] thanks @elsongabriel, seems str_contains is not available in php 7 --- 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 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']); }