contains the number of revisions in the history
* $wgStylePath and $wgLogo are now set in the default LocalSettings.php file.
* (bug 20186) Allow filtering history for revision deletion.
+* New hook getOtherBlockLogLink, called in Special:IPBlockList to show links
+ to block logs of other blocking extensions, i.e. GlobalBlocking
=== Bug fixes in 1.16 ===
$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
+$$this->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
$wgOut->addHTML( $this->searchForm() );
$wgOut->addWikiMsg( 'ipblocklist-empty' );
}
+
+ $otherBlockLink = array();
+ wfRunHooks( 'getOtherBlockLogLink', array( &$otherBlockLink, $this->ip ) );
+ if( count( $otherBlockLink ) ) {
+ $wgOut->addHTML(
+ Html::rawElement( 'h2', array(), wfMsg( 'ipblocklist-otherblocks' ) ) . "\n"
+ );
+ $list = '';
+ foreach( $otherBlockLink as $link ) {
+ $list .= Html::rawElement( 'li', array(), $link ) . "\n";
+ }
+ $wgOut->addHTML( Html::rawElement( 'ul', array( 'class' => 'mw-ipblocklist-otherblocks' ), $list ) . "\n" );
+ }
+
}
function searchForm() {
'ipblocklist-sh-addressblocks' => '$1 single IP blocks',
'ipblocklist-summary' => '', # do not translate or duplicate this message to other languages
'ipblocklist-submit' => 'Search',
+'ipblocklist-otherblocks' => 'Other blocks',
'blocklistline' => '$1, $2 blocked $3 ($4)',
'infiniteblock' => 'infinite',
'expiringblock' => 'expires on $1 at $2',
'ipblocklist-sh-addressblocks',
'ipblocklist-summary',
'ipblocklist-submit',
+ 'ipblocklist-otherblocks',
'blocklistline',
'infiniteblock',
'expiringblock',