From be040625479a61e25f04f31c54b20a90265ebb6c Mon Sep 17 00:00:00 2001 From: Tyler Anthony Romeo Date: Fri, 25 Jan 2013 11:06:08 -0500 Subject: [PATCH] (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 --- includes/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1