Update plugins.php

This commit is contained in:
slawkens 2023-08-26 07:12:15 +02:00
parent 3e12f70861
commit c7966b7c55

View File

@ -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']);
}