diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2014-02-16 16:36:33 +0000 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2014-02-16 16:36:33 +0000 |
commit | d668eb9fab52028922a60c337d370b956602a533 (patch) | |
tree | 9755bb3306d1c078bb3cde504734715d46272082 | |
parent | adb80b0288b9e3c7c4576056d5e1d0dc77bcb842 (diff) | |
download | rpg-d668eb9fab52028922a60c337d370b956602a533.tar.gz rpg-d668eb9fab52028922a60c337d370b956602a533.tar.bz2 |
since php 5, no need to access objects by reference
-rw-r--r-- | inc/events.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/inc/events.php b/inc/events.php index 44ccdb8a6..ed60c95fe 100644 --- a/inc/events.php +++ b/inc/events.php @@ -164,10 +164,7 @@ class Doku_Event_Handler { if (!empty($this->_hooks[$evt_name])) { foreach ($this->sort_hooks($this->_hooks[$evt_name]) as $hook) { - // list($obj, $method, $param, $seq) = $hook; - $obj =& $hook[0]; - $method = $hook[1]; - $param = $hook[2]; + list($obj, $method, $param, $seq) = $hook; if (is_null($obj)) { $method($event, $param); |