summaryrefslogtreecommitdiff
path: root/inc/events.php
diff options
context:
space:
mode:
authorAndreas Gohr <gohr@cosmocode.de>2012-04-17 09:46:23 +0200
committerAndreas Gohr <gohr@cosmocode.de>2012-04-17 09:46:23 +0200
commit3ab58ffe5551d68e5a34f8e29e55c5e0c2511570 (patch)
treecfe8f9c7452522224f509922a80b35a32bd25567 /inc/events.php
parent4993701ac4ac5be9197756289d38f05f8c6bd048 (diff)
downloadrpg-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/events.php')
-rw-r--r--inc/events.php4
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='') {