mirror of
https://github.com/slawkens/myaac.git
synced 2026-04-25 11:53:31 +02:00
Merge branch 'main' into develop
This commit is contained in:
@@ -890,7 +890,11 @@ class Plugins {
|
||||
|
||||
global $hooks;
|
||||
foreach($plugin_info['hooks'] ?? [] as $name => $info) {
|
||||
$hooks->unregister($name, $info['type'], $info['file']);
|
||||
if (str_contains($info['type'], 'HOOK_')) {
|
||||
$info['type'] = str_replace('HOOK_', '', $info['type']);
|
||||
}
|
||||
|
||||
$hooks->unregister($name, 'HOOK_' . $info['type'], $info['file']);
|
||||
}
|
||||
|
||||
clearCache();
|
||||
|
||||
Reference in New Issue
Block a user