arguments fix
This commit is contained in:
parent
34b9db5156
commit
a8dafec3de
3 changed files with 5 additions and 3 deletions
|
|
@ -13,6 +13,6 @@ class Event
|
|||
|
||||
public function getAction(...$data)
|
||||
{
|
||||
return call_user_func($this->action, $data);
|
||||
return call_user_func_array($this->action, $data);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -211,7 +211,7 @@ class EventHandler
|
|||
/**
|
||||
* Adding Custom Functions at the declared time
|
||||
* @param string $event : event list 참조
|
||||
* @param Event $callback
|
||||
* @param callback $callback
|
||||
* @param int $priority : optional
|
||||
* @return void
|
||||
*/
|
||||
|
|
@ -227,7 +227,7 @@ class EventHandler
|
|||
{
|
||||
if (isset(self::$eventHandlers[$event])) {
|
||||
foreach (self::$eventHandlers[$event] as $callback) {
|
||||
$callback->getAction($data);
|
||||
$callback->getAction(...$data);
|
||||
}
|
||||
|
||||
if (function_exists("run_event")) {
|
||||
|
|
|
|||
|
|
@ -393,6 +393,8 @@ if (file_exists($dbconfig_file)) {
|
|||
sql_query("SET SESSION sql_mode = ''");
|
||||
if (defined('G5_TIMEZONE'))
|
||||
sql_query(" set time_zone = '" . G5_TIMEZONE . "'");
|
||||
|
||||
EventHandler::triggerEvent("amber.load_config_after");
|
||||
} else {
|
||||
?><!doctype html>
|
||||
<html lang="ko">
|
||||
|
|
|
|||
Loading…
Reference in a new issue