Follow-up to r51084:
authorSiebrand Mazeland <siebrand@users.mediawiki.org>
Fri, 5 Jun 2009 07:33:57 +0000 (07:33 +0000)
committerSiebrand Mazeland <siebrand@users.mediawiki.org>
Fri, 5 Jun 2009 07:33:57 +0000 (07:33 +0000)
* address case sensitivity issue raised by Splarka on CR
* also change to edit link on Special:Block

includes/FileDeleteForm.php
includes/ProtectionForm.php
includes/specials/SpecialBlockip.php

index 9491fd2..a958364 100644 (file)
@@ -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' ),
index ec23046..b1f7d65 100644 (file)
@@ -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' ),
index b4a7b5f..488c559 100644 (file)
@@ -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 '<p class="mw-ipb-conveniencelinks">' . $wgLang->pipeList( $links ) . '</p>';
        }