From a94fcedffa28c7d3d545961202f9877e87028c65 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Wed, 30 Dec 2009 08:51:25 +0000 Subject: [PATCH] Rename hook per Tim's CR on r58192 --- docs/hooks.txt | 10 +++++----- includes/specials/SpecialBlockip.php | 2 +- includes/specials/SpecialIpblocklist.php | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/hooks.txt b/docs/hooks.txt index 6969eea400..6e4eb0fa1c 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -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 diff --git a/includes/specials/SpecialBlockip.php b/includes/specials/SpecialBlockip.php index dd2ed997b2..dbd67ec2e4 100644 --- a/includes/specials/SpecialBlockip.php +++ b/includes/specials/SpecialBlockip.php @@ -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 ); diff --git a/includes/specials/SpecialIpblocklist.php b/includes/specials/SpecialIpblocklist.php index 06dd570ca3..e7a6ebbe19 100644 --- a/includes/specials/SpecialIpblocklist.php +++ b/includes/specials/SpecialIpblocklist.php @@ -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 -- 2.20.1