Follow-up r83786: update references in SpecialPage::getTitleFor() and friends to point to 'Block' rather than 'Blockip'; should fix errors on translatewiki.

This commit is contained in:
Happy-melon 2011-03-12 23:22:34 +00:00
parent 97e2c97578
commit b2d91f90e4
7 changed files with 9 additions and 9 deletions

View file

@ -4942,7 +4942,7 @@ $wgSpecialPageGroups = array(
'Listadmins' => 'users',
'Listbots' => 'users',
'Userrights' => 'users',
'Blockip' => 'users',
'Block' => 'users',
'Preferences' => 'users',
'Resetpass' => 'users',
'DeletedContributions' => 'users',

View file

@ -942,7 +942,7 @@ class Linker {
* @private
*/
function blockLink( $userId, $userText ) {
$blockPage = SpecialPage::getTitleFor( 'Blockip', $userText );
$blockPage = SpecialPage::getTitleFor( 'Block', $userText );
$blockLink = $this->link( $blockPage, wfMsgHtml( 'blocklink' ) );
return $blockLink;
}

View file

@ -411,7 +411,7 @@ class LogEventsList {
) .
$this->message['pipe-separator'] .
$this->skin->link(
SpecialPage::getTitleFor( 'Blockip', $row->log_title ),
SpecialPage::getTitleFor( 'Block', $row->log_title ),
$this->message['change-blocklink'],
array(),
array(),

View file

@ -1224,7 +1224,7 @@ class SkinTemplate extends Skin {
if ( $wgUser->isAllowed( 'block' ) ) {
$nav_urls['blockip'] = array(
'href' => self::makeSpecialUrlSubpage( 'Blockip', $rootUser )
'href' => self::makeSpecialUrlSubpage( 'Block', $rootUser )
);
} else {
$nav_urls['blockip'] = false;

View file

@ -252,7 +252,7 @@ class SpecialContributions extends SpecialPage {
if( $subject->isAllowed( 'block' ) ) { # Block / Change block / Unblock links
if ( $target->isBlocked() ) {
$tools[] = $sk->linkKnown( # Change block link
SpecialPage::getTitleFor( 'Blockip', $username ),
SpecialPage::getTitleFor( 'Block', $username ),
wfMsgHtml( 'change-blocklink' )
);
$tools[] = $sk->linkKnown( # Unblock link
@ -266,7 +266,7 @@ class SpecialContributions extends SpecialPage {
);
} else { # User is not blocked
$tools[] = $sk->linkKnown( # Block link
SpecialPage::getTitleFor( 'Blockip', $username ),
SpecialPage::getTitleFor( 'Block', $username ),
wfMsgHtml( 'blocklink' )
);
}

View file

@ -372,7 +372,7 @@ class DeletedContributionsPage extends SpecialPage {
if( $wgUser->isAllowed( 'block' ) ) { # Block / Change block / Unblock links
if ( $userObj->isBlocked() ) {
$tools[] = $sk->linkKnown( # Change block link
SpecialPage::getTitleFor( 'Blockip', $nt->getDBkey() ),
SpecialPage::getTitleFor( 'Block', $nt->getDBkey() ),
wfMsgHtml( 'change-blocklink' )
);
$tools[] = $sk->linkKnown( # Unblock link
@ -387,7 +387,7 @@ class DeletedContributionsPage extends SpecialPage {
}
else { # User is not blocked
$tools[] = $sk->linkKnown( # Block link
SpecialPage::getTitleFor( 'Blockip', $nt->getDBkey() ),
SpecialPage::getTitleFor( 'Block', $nt->getDBkey() ),
wfMsgHtml( 'blocklink' )
);
}

View file

@ -498,7 +498,7 @@ class IPUnblockForm extends SpecialPage {
# Create changeblocklink for all blocks with exception of autoblocks
if( !$block->mAuto ) {
$changeblocklink = wfMsgExt( 'pipe-separator', 'escapenoentities' ) .
$sk->link( SpecialPage::getTitleFor( 'Blockip', $block->mAddress ),
$sk->link( SpecialPage::getTitleFor( 'Block', $block->mAddress ),
$msg['change-blocklink'],
array(), array(), 'known' );
}