dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10a61a5
)
Fix for r49939: hide navigation links in higher level
author
Niklas Laxström
<nikerabbit@users.mediawiki.org>
Mon, 27 Apr 2009 11:17:46 +0000
(11:17 +0000)
committer
Niklas Laxström
<nikerabbit@users.mediawiki.org>
Mon, 27 Apr 2009 11:17:46 +0000
(11:17 +0000)
includes/Pager.php
patch
|
blob
|
history
diff --git
a/includes/Pager.php
b/includes/Pager.php
index
1078a74
..
7df8499
100644
(file)
--- 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;
}