From 695ec8ea93a30e2359b28de867970192ab288b94 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Mon, 27 Apr 2009 11:17:46 +0000 Subject: [PATCH] Fix for r49939: hide navigation links in higher level --- includes/Pager.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/Pager.php b/includes/Pager.php index 1078a74695..7df8499811 100644 --- a/includes/Pager.php +++ b/includes/Pager.php @@ -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; } -- 2.20.1