From: Alexandre Emsenhuber Date: Sun, 8 Jul 2012 05:25:59 +0000 (+0200) Subject: Fix for Ic74c7ba7 (c8c50eb): there's no reason to pass $this by reference. X-Git-Tag: 1.31.0-rc.0~22921^2 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=a47f4717dd6eca8400995f8776e256d01da26867;p=lhc%2Fweb%2Fwiklou.git Fix for Ic74c7ba7 (c8c50eb): there's no reason to pass $this by reference. Change-Id: I9f00738add79c1cb552d6097dc6259101d0476cc --- diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index ba6db79395..78e75b98b5 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -605,7 +605,7 @@ class SpecialPage { * @param $special SpecialPage * @param $subPage string|null */ - wfRunHooks( 'SpecialPageBeforeExecute', array( &$this, $subPage ) ); + wfRunHooks( 'SpecialPageBeforeExecute', array( $this, $subPage ) ); $this->beforeExecute( $subPage ); $this->execute( $subPage ); @@ -619,7 +619,7 @@ class SpecialPage { * @param $special SpecialPage * @param $subPage string|null */ - wfRunHooks( 'SpecialPageAfterExecute', array( &$this, $subPage ) ); + wfRunHooks( 'SpecialPageAfterExecute', array( $this, $subPage ) ); } /**