for it.
* (bug 17020) Adding fallback encodings for Traditional and Simplified Chinese
languages while the the text is typed as URLs.
-* (bug 17614) Prev / Next links not need on ImagePage file history if less than
- limit
+* (bug 17614) Prev / Next links are not shown if all results are shown
* (bug 18207) Strange spacing before [[irc:...]] links
* Removed float from the user login form in RTL interface - caused display
problems in FF2
return array( 'prev' => $prev, 'next' => $next, 'first' => $first, 'last' => $last );
}
+ function isNavigationBarShown() {
+ if ( !$this->mQueryDone ) {
+ $this->doQuery();
+ }
+ // Hide navigation by default if there is nothing to page
+ return !($this->mIsFirst && $this->mIsLast);
+ }
+
/**
* Get paging links. If a link is disabled, the item from $disabledTexts
* will be used. If there is no such item, the unlinked text from
function getNavigationBar() {
global $wgLang;
+ if ( !$this->isNavigationBarShown() ) return '';
+
if( isset( $this->mNavigationBar ) ) {
return $this->mNavigationBar;
}
function getNavigationBar() {
global $wgLang;
+ if ( !$this->isNavigationBarShown() ) return '';
+
if ( isset( $this->mNavigationBar ) ) {
return $this->mNavigationBar;
}
*/
function getNavigationBar() {
global $wgStylePath, $wgContLang;
+
+ if ( !$this->isNavigationBarShown() ) return '';
+
$path = "$wgStylePath/common/images";
$labels = array(
'first' => 'table_pager_first',