diff options
author | Andreas Gohr <gohr@cosmocode.de> | 2012-04-17 09:46:23 +0200 |
---|---|---|
committer | Andreas Gohr <gohr@cosmocode.de> | 2012-04-17 09:46:23 +0200 |
commit | 3ab58ffe5551d68e5a34f8e29e55c5e0c2511570 (patch) | |
tree | cfe8f9c7452522224f509922a80b35a32bd25567 /inc | |
parent | 4993701ac4ac5be9197756289d38f05f8c6bd048 (diff) | |
download | rpg-3ab58ffe5551d68e5a34f8e29e55c5e0c2511570.tar.gz rpg-3ab58ffe5551d68e5a34f8e29e55c5e0c2511570.tar.bz2 |
no need to pass objects by reference
fixes passing null to event hook registration
Diffstat (limited to 'inc')
-rw-r--r-- | inc/events.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/events.php b/inc/events.php index 621cb64c1..09f3f3c0c 100644 --- a/inc/events.php +++ b/inc/events.php @@ -149,8 +149,8 @@ class Doku_Event_Handler { * @param $method (function) event handler function * @param $param (mixed) data passed to the event handler */ - function register_hook($event, $advise, &$obj, $method, $param=null) { - $this->_hooks[$event.'_'.$advise][] = array(&$obj, $method, $param); + function register_hook($event, $advise, $obj, $method, $param=null) { + $this->_hooks[$event.'_'.$advise][] = array($obj, $method, $param); } function process_event(&$event,$advise='') { |