From: Brion Vibber Date: Wed, 14 Dec 2011 00:50:06 +0000 (+0000) Subject: Fix for r106144 -- wrong syntax X-Git-Tag: 1.31.0-rc.0~25977 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=f6a2974c7ba8ff3ef83e205c8305a1e96085a4f7;p=lhc%2Fweb%2Fwiklou.git Fix for r106144 -- wrong syntax --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 1efced8ac5..87712fdbff 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1922,7 +1922,7 @@ class OutputPage extends ContextSource { $redirect = $this->mRedirect; $code = $this->mRedirectCode; - if( wfRunHooks( "BeforePageRedirect", $this, &$redirect, &$code ) ) { + if( wfRunHooks( "BeforePageRedirect", array( $this, &$redirect, &$code ) ) ) { if( $code == '301' || $code == '303' ) { if( !$wgDebugRedirects ) { $message = HttpStatus::getMessage( $code );