summaryrefslogtreecommitdiff
path: root/inc/events.php
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2014-02-16 16:36:33 +0000
committerChristopher Smith <chris@jalakai.co.uk>2014-02-16 16:36:33 +0000
commitd668eb9fab52028922a60c337d370b956602a533 (patch)
tree9755bb3306d1c078bb3cde504734715d46272082 /inc/events.php
parentadb80b0288b9e3c7c4576056d5e1d0dc77bcb842 (diff)
downloadrpg-d668eb9fab52028922a60c337d370b956602a533.tar.gz
rpg-d668eb9fab52028922a60c337d370b956602a533.tar.bz2
since php 5, no need to access objects by reference
Diffstat (limited to 'inc/events.php')
-rw-r--r--inc/events.php5
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);