From: Niklas Laxström Date: Mon, 27 Apr 2009 11:17:46 +0000 (+0000) Subject: Fix for r49939: hide navigation links in higher level X-Git-Tag: 1.31.0-rc.0~41980 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=695ec8ea93a30e2359b28de867970192ab288b94;p=lhc%2Fweb%2Fwiklou.git Fix for r49939: hide navigation links in higher level --- 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; }