From d668eb9fab52028922a60c337d370b956602a533 Mon Sep 17 00:00:00 2001
From: Christopher Smith <chris@jalakai.co.uk>
Date: Sun, 16 Feb 2014 16:36:33 +0000
Subject: [PATCH] since php 5, no need to access objects by reference

---
 inc/events.php | 5 +----
 1 file changed, 1 insertion(+), 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);
-- 
GitLab