(bug 15432) Contribs links at blockip. Moved "edit" message and shorten some.
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 8 Oct 2008 04:44:29 +0000 (04:44 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 8 Oct 2008 04:44:29 +0000 (04:44 +0000)
includes/specials/SpecialBlockip.php
languages/messages/MessagesEn.php

index 34683a5..1b99e93 100644 (file)
@@ -479,9 +479,11 @@ class IPBlockForm {
        private function getConvenienceLinks() {
                global $wgUser;
                $skin = $wgUser->getSkin();
-               $links[] = $skin->makeLink ( 'MediaWiki:Ipbreason-dropdown', wfMsgHtml( 'ipb-edit-dropdown' ) );
+               $contribsPage = SpecialPage::getTitleFor( 'Contributions', $this->BlockAddress );
+               $links[] = $skin->link( $contribsPage, wfMsgHtml( 'ipb-blocklist-contibs', $this->BlockAddress ) );
                $links[] = $this->getUnblockLink( $skin );
                $links[] = $this->getBlockListLink( $skin );
+               $links[] = $skin->makeLink ( 'MediaWiki:Ipbreason-dropdown', wfMsgHtml( 'ipb-edit-dropdown' ) );
                return '<p class="mw-ipb-conveniencelinks">' . implode( ' | ', $links ) . '</p>';
        }
 
index 166ed86..9deef29 100644 (file)
@@ -2551,8 +2551,9 @@ See [[Special:IPBlockList|IP block list]] to review blocks.',
 'ipb-edit-dropdown'               => 'Edit block reasons',
 'ipb-unblock-addr'                => 'Unblock $1',
 'ipb-unblock'                     => 'Unblock a username or IP address',
-'ipb-blocklist-addr'              => 'View existing blocks for $1',
+'ipb-blocklist-addr'              => 'Existing blocks for $1',
 'ipb-blocklist'                   => 'View existing blocks',
+'ipb-blocklist-contibs'           => 'Contributions for $1',
 'unblockip'                       => 'Unblock user',
 'unblockiptext'                   => 'Use the form below to restore write access to a previously blocked IP address or username.',
 'ipusubmit'                       => 'Unblock this address',