(bug 44346) Fixed call signature for PingLimiter hook.
authorTyler Anthony Romeo <tylerromeo@gmail.com>
Fri, 25 Jan 2013 16:06:08 +0000 (11:06 -0500)
committerTyler Anthony Romeo <tylerromeo@gmail.com>
Fri, 25 Jan 2013 16:06:08 +0000 (11:06 -0500)
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

index dbe9a64..acd65a0 100644 (file)
@@ -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;
                }