From 33a47137c9fb2ff9d8971158e693c92b0ee85d57 Mon Sep 17 00:00:00 2001
From: slawkens <slawkens@gmail.com>
Date: Sat, 29 Jun 2024 15:09:44 +0200
Subject: [PATCH] Fix hooks priority default

---
 system/src/Plugins.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/system/src/Plugins.php b/system/src/Plugins.php
index 97604af4..fbaa5e40 100644
--- a/system/src/Plugins.php
+++ b/system/src/Plugins.php
@@ -218,9 +218,9 @@ class Plugins {
 		$hooks = [];
 		foreach(self::getAllPluginsJson() as $plugin) {
 			if (isset($plugin['hooks'])) {
-				$priority = 1000;
-
 				foreach ($plugin['hooks'] as $_name => $info) {
+					$priority = 1000;
+
 					if (str_contains($info['type'], 'HOOK_')) {
 						$info['type'] = str_replace('HOOK_', '', $info['type']);
 					}