Index: trunk/phase3/includes/ImagePage.php |
— | — | @@ -958,7 +958,12 @@ |
959 | 959 | if( count($this->mHist) ) { |
960 | 960 | $list = new ImageHistoryList( $this->mImagePage ); |
961 | 961 | # Generate prev/next links |
962 | | - $navLink = $this->getNavigationBar(); |
| 962 | + $navLink = ''; |
| 963 | + |
| 964 | + # Only add navigation links when needed |
| 965 | + if ( !$this->mIsFirst && !$this->mIsLast ) { |
| 966 | + $navLink = $this->getNavigationBar(); |
| 967 | + } |
963 | 968 | $s = $list->beginImageHistoryList($navLink); |
964 | 969 | // Skip rows there just for paging links |
965 | 970 | for( $i = $this->mRange[0]; $i <= $this->mRange[1]; $i++ ) { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -375,6 +375,7 @@ |
376 | 376 | * (bug 17020) Adding fallback encodings for Traditional and Simplified Chinese |
377 | 377 | languages while the the text is typed as URLs. |
378 | 378 | * (bug 18535) Search tab tool-tops are corrupted |
| 379 | +* (bug 17614) Prev / Next links not need on ImagePage file history if less than limit |
379 | 380 | |
380 | 381 | == API changes in 1.15 == |
381 | 382 | * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions |