finish plugin: sticky promotion

This commit is contained in:
xiaomlove
2022-06-08 14:15:59 +08:00
parent 44c750234a
commit 09f6e5b274
62 changed files with 954 additions and 178 deletions
+2 -2
View File
@@ -37,11 +37,11 @@ class Hook
{
if (!isset(self::$callbacks[$name])) {
do_log("No this hook: $name");
return null;
return $value;
}
$args = func_get_args();
reset(self::$callbacks[$name]);
do_log("name: $name, args: " . json_encode($args));
do_log("name: $name, argc: " . (func_num_args() - 1));
do {
foreach ((array)current(self::$callbacks[$name]) as $callback) {
$args[1] = $value;