From 6563eab768085b8bb8798e9a76ba12caaa45165b Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 7 Dec 2007 21:32:14 +0000 Subject: [PATCH] Cleanup for r28237: * Fix Special:Contributions to use same ReverseChronologicalPager class as action=history * Change the new pager-newer-n and pager-older-n to use same text order as older Special:Contributions notes * Remove now-redundant messages from Special:Contributions --- includes/SpecialContributions.php | 22 +--------------------- languages/messages/MessagesEn.php | 8 ++------ 2 files changed, 3 insertions(+), 27 deletions(-) diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index b4e9bbf784..333898b842 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -4,7 +4,7 @@ * @addtogroup SpecialPage */ -class ContribsPager extends IndexPager { +class ContribsPager extends ReverseChronologicalPager { public $mDefaultDirection = true; var $messages, $target; var $namespace = '', $mDb; @@ -110,26 +110,6 @@ class ContribsPager extends IndexPager { return "\n"; } - function getNavigationBar() { - if ( isset( $this->mNavigationBar ) ) { - return $this->mNavigationBar; - } - $linkTexts = array( - 'prev' => wfMsgHtml( "sp-contributions-newer", $this->mLimit ), - 'next' => wfMsgHtml( 'sp-contributions-older', $this->mLimit ), - 'first' => wfMsgHtml('sp-contributions-newest'), - 'last' => wfMsgHtml( 'sp-contributions-oldest' ) - ); - - $pagingLinks = $this->getPagingLinks( $linkTexts ); - $limitLinks = $this->getLimitLinks(); - $limits = implode( ' | ', $limitLinks ); - - $this->mNavigationBar = "({$pagingLinks['first']} | {$pagingLinks['last']}) " . - wfMsgHtml("viewprevnext", $pagingLinks['prev'], $pagingLinks['next'], $limits); - return $this->mNavigationBar; - } - /** * Generates each row in the contributions list. * diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 1119dffac6..8897dfcac2 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -1714,8 +1714,8 @@ in active use.

', 'unusedcategoriestext' => 'The following category pages exist although no other page or category make use of them.', 'notargettitle' => 'No target', 'notargettext' => 'You have not specified a target page or user to perform this function on.', -'pager-newer-n' => '{{PLURAL:$1|1 newer|$1 newer}}', -'pager-older-n' => '{{PLURAL:$1|1 older|$1 older}}', +'pager-newer-n' => '{{PLURAL:$1|newer 1|newer $1}}', +'pager-older-n' => '{{PLURAL:$1|older 1|older $1}}', # Book sources 'booksources' => 'Book sources', @@ -2027,10 +2027,6 @@ $1', 'month' => 'From month (and earlier):', 'year' => 'From year (and earlier):', -'sp-contributions-newest' => 'Newest', -'sp-contributions-oldest' => 'Oldest', -'sp-contributions-newer' => 'Newer $1', -'sp-contributions-older' => 'Older $1', 'sp-contributions-newbies' => 'Show contributions of new accounts only', 'sp-contributions-newbies-sub' => 'For new accounts', 'sp-contributions-blocklog' => 'Block log', -- 2.20.1