From e17b75e76aab9edeb5e3a4dd3e86558e025d0b38 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Fri, 5 Jun 2009 07:33:57 +0000 Subject: [PATCH] Follow-up to r51084: * address case sensitivity issue raised by Splarka on CR * also change to edit link on Special:Block --- includes/FileDeleteForm.php | 2 +- includes/ProtectionForm.php | 2 +- includes/specials/SpecialBlockip.php | 8 +++++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/includes/FileDeleteForm.php b/includes/FileDeleteForm.php index 9491fd23b7..a95836411a 100644 --- a/includes/FileDeleteForm.php +++ b/includes/FileDeleteForm.php @@ -194,7 +194,7 @@ class FileDeleteForm { if ( $wgUser->isAllowed( 'editinterface' ) ) { $skin = $wgUser->getSkin(); - $title = Title::newFromText( 'filedelete-reason-dropdown', NS_MEDIAWIKI ); + $title = Title::newFromText( 'Filedelete-reason-dropdown', NS_MEDIAWIKI ); $link = $skin->link( $title, wfMsgHtml( 'filedelete-edit-reasonlist' ), diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index ec23046ab7..b1f7d65da9 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -447,7 +447,7 @@ class ProtectionForm { $out .= Xml::closeElement( 'fieldset' ); if ( $wgUser->isAllowed( 'editinterface' ) ) { - $title = Title::newFromText( 'protect-dropdown', NS_MEDIAWIKI ); + $title = Title::newFromText( 'Protect-dropdown', NS_MEDIAWIKI ); $link = $wgUser->getSkin()->link( $title, wfMsgHtml( 'protect-edit-reasonlist' ), diff --git a/includes/specials/SpecialBlockip.php b/includes/specials/SpecialBlockip.php index b4a7b5f363..488c559081 100644 --- a/includes/specials/SpecialBlockip.php +++ b/includes/specials/SpecialBlockip.php @@ -636,7 +636,13 @@ class IPBlockForm { $links[] = $this->getContribsLink( $skin ); $links[] = $this->getUnblockLink( $skin ); $links[] = $this->getBlockListLink( $skin ); - $links[] = $skin->makeLink ( 'MediaWiki:Ipbreason-dropdown', wfMsgHtml( 'ipb-edit-dropdown' ) ); + $title = Title::newFromText( 'Ipbreason-dropdown', NS_MEDIAWIKI ); + $links[] = $skin->link( + $title, + wfMsgHtml( 'ipb-edit-dropdown' ), + array(), + array( 'action' => 'edit' ) + ); return ''; } -- 2.20.1