mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 09:49:22 +02:00
thanks @elsongabriel, seems str_contains is not available in php 7
This commit is contained in:
parent
063cbab93e
commit
8ea78a5852
@ -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']);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user