From: Tyler Anthony Romeo Date: Fri, 25 Jan 2013 16:06:08 +0000 (-0500) Subject: (bug 44346) Fixed call signature for PingLimiter hook. X-Git-Tag: 1.31.0-rc.0~20920 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=be040625479a61e25f04f31c54b20a90265ebb6c;p=lhc%2Fweb%2Fwiklou.git (bug 44346) Fixed call signature for PingLimiter hook. Changed third parameter of PingLimiter hook to a reference since that's what all the docs say and because extensions need to be able to override the result of the ping limiting. Change-Id: Ia8e9d3c4de9a6f298a00949007cad53021ab782c --- diff --git a/includes/User.php b/includes/User.php index dbe9a64bc9..acd65a0c9c 100644 --- a/includes/User.php +++ b/includes/User.php @@ -1467,7 +1467,7 @@ class User { public function pingLimiter( $action = 'edit' ) { # Call the 'PingLimiter' hook $result = false; - if( !wfRunHooks( 'PingLimiter', array( &$this, $action, $result ) ) ) { + if( !wfRunHooks( 'PingLimiter', array( &$this, $action, &$result ) ) ) { return $result; }