mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
finish plugin: sticky promotion
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user