Rename hook per Tim's CR on r58192
authorRaimond Spekking <raymond@users.mediawiki.org>
Wed, 30 Dec 2009 08:51:25 +0000 (08:51 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Wed, 30 Dec 2009 08:51:25 +0000 (08:51 +0000)
docs/hooks.txt
includes/specials/SpecialBlockip.php
includes/specials/SpecialIpblocklist.php

index 6969eea..6e4eb0f 100644 (file)
@@ -787,11 +787,6 @@ $title: Title object of page
 $url: string value as output (out parameter, can modify)
 $query: query options passed to Title::getLocalURL()
 
-'getOtherBlockLogLink': Get links to the block log from extensions which blocks
-       users and/or IP addresses too
-$otherBlockLink: An array with links to other block logs
-$ip: The requested IP address or username
-
 'GetPreferences': modify user preferences
 $user: User whose preferences are being modified.
 &$preferences: Preferences description array, to be fed to an HTMLForm object
@@ -1112,6 +1107,11 @@ displayed
 Hooks can alter or append to the array of URLs for search & suggestion formats.
 &$urls: array of associative arrays with Url element attributes
 
+'OtherBlockLogLink': Get links to the block log from extensions which blocks
+       users and/or IP addresses too
+$otherBlockLink: An array with links to other block logs
+$ip: The requested IP address or username
+
 'OutputPageBeforeHTML': a page has been processed by the parser and
 the resulting HTML is about to be displayed.
 $parserOutput: the parserOutput (object) that corresponds to the page
index dd2ed99..dbd67ec 100644 (file)
@@ -107,7 +107,7 @@ class IPBlockForm {
                        $wgOut->addHTML( Xml::tags( 'p', array( 'class' => 'error' ), $msg ) );
                } elseif( $this->BlockAddress ) {
                        # Get other blocks, i.e. from GlobalBlocking or TorBlock extension
-                       wfRunHooks( 'getOtherBlockLogLink', array( &$otherBlockedMsgs, $this->BlockAddress ) );
+                       wfRunHooks( 'OtherBlockLogLink', array( &$otherBlockedMsgs, $this->BlockAddress ) );
 
                        $userId = is_object( $user ) ? $user->getId() : 0;
                        $currentBlock = Block::newFromDB( $this->BlockAddress, $userId );
index 06dd570..e7a6ebb 100644 (file)
@@ -302,7 +302,7 @@ class IPUnblockForm {
 
                // Check for other blocks, i.e. global/tor blocks
                $otherBlockLink = array();
-               wfRunHooks( 'getOtherBlockLogLink', array( &$otherBlockLink, $this->ip ) );
+               wfRunHooks( 'OtherBlockLogLink', array( &$otherBlockLink, $this->ip ) );
 
                // Show additional header for the local block only when other blocks exists.
                // Not necessary in a standard installation without such extensions enabled