thanks @elsongabriel, seems str_contains is not available in php 7

This commit is contained in:
slawkens 2023-08-25 20:45:45 +02:00
parent 063cbab93e
commit 8ea78a5852

View File

@ -74,7 +74,7 @@ class Plugins {
if (isset($plugin['hooks'])) { if (isset($plugin['hooks'])) {
foreach ($plugin['hooks'] as $_name => $info) { foreach ($plugin['hooks'] as $_name => $info) {
if (defined('HOOK_'. $info['type'])) { if (defined('HOOK_'. $info['type'])) {
if (str_contains($info['type'], 'HOOK_')) { if (strpos($info['type'], 'HOOK_') !== false) {
$info['type'] = str_replace('HOOK_', '', $info['type']); $info['type'] = str_replace('HOOK_', '', $info['type']);
} }