mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Fix hooks priority default
This commit is contained in:
parent
dc17b701da
commit
33a47137c9
@ -218,9 +218,9 @@ class Plugins {
|
|||||||
$hooks = [];
|
$hooks = [];
|
||||||
foreach(self::getAllPluginsJson() as $plugin) {
|
foreach(self::getAllPluginsJson() as $plugin) {
|
||||||
if (isset($plugin['hooks'])) {
|
if (isset($plugin['hooks'])) {
|
||||||
|
foreach ($plugin['hooks'] as $_name => $info) {
|
||||||
$priority = 1000;
|
$priority = 1000;
|
||||||
|
|
||||||
foreach ($plugin['hooks'] as $_name => $info) {
|
|
||||||
if (str_contains($info['type'], 'HOOK_')) {
|
if (str_contains($info['type'], 'HOOK_')) {
|
||||||
$info['type'] = str_replace('HOOK_', '', $info['type']);
|
$info['type'] = str_replace('HOOK_', '', $info['type']);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user