Cleanup for r28237:
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 7 Dec 2007 21:32:14 +0000 (21:32 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 7 Dec 2007 21:32:14 +0000 (21:32 +0000)
* 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
languages/messages/MessagesEn.php

index b4e9bbf..333898b 100644 (file)
@@ -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 "</ul>\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.
         *
index 1119dff..8897dfc 100644 (file)
@@ -1714,8 +1714,8 @@ in active use.</p>',
 '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',