From bae079f71c1987d36490bcbf1c4f18f6fde74168 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Thu, 29 Feb 2024 13:32:46 +0700 Subject: [PATCH] Fix Hook Functionality --- CHANGELOG.md | 5 +++++ system/autoload/Hookers.php | 1 + version.json | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index df88411e..a87cff46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ # CHANGELOG +## 2024.2.29 + +- Fix Hook Functionality +- Change Customer Menu + ## 2024.2.28 - Fix Buy Plan with Balance diff --git a/system/autoload/Hookers.php b/system/autoload/Hookers.php index 16d665c4..f15d0a96 100644 --- a/system/autoload/Hookers.php +++ b/system/autoload/Hookers.php @@ -38,6 +38,7 @@ function register_menu($name, $admin, $function, $position, $icon = '', $label = $hook_registered = array(); function register_hook($action, $function){ + global $hook_registered; $hook_registered[] = [ 'action' => $action, 'function' => $function diff --git a/version.json b/version.json index 60dd994c..222ba5ac 100644 --- a/version.json +++ b/version.json @@ -1,3 +1,3 @@ { - "version": "2024.2.28" + "version": "2024.2.29" } \ No newline at end of file