Fix for r49939: hide navigation links in higher level
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Mon, 27 Apr 2009 11:17:46 +0000 (11:17 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Mon, 27 Apr 2009 11:17:46 +0000 (11:17 +0000)
includes/Pager.php

index 1078a74..7df8499 100644 (file)
@@ -517,6 +517,8 @@ abstract class AlphabeticPager extends IndexPager {
        function getNavigationBar() {
                global $wgLang;
 
+               if ( $this->mIsFirst && $this->mIsLast ) return '';
+
                if( isset( $this->mNavigationBar ) ) {
                        return $this->mNavigationBar;
                }
@@ -598,6 +600,8 @@ abstract class ReverseChronologicalPager extends IndexPager {
        function getNavigationBar() {
                global $wgLang;
 
+               if ( $this->mIsFirst && $this->mIsLast ) return '';
+
                if ( isset( $this->mNavigationBar ) ) {
                        return $this->mNavigationBar;
                }