Index: trunk/extensions/Configure/Configure.page.php |
— | — | @@ -345,9 +345,7 @@ |
346 | 346 | ksort($versions); ## Put in ascending order for now. |
347 | 347 | |
348 | 348 | foreach ( $versions as $ts => $data ) { |
349 | | - if ( $count > 10 ) { |
350 | | - break; |
351 | | - } elseif ( in_array( $this->mWiki, $wgConf->getWikisInVersion( $ts ) ) ) { |
| 349 | + if ( in_array( $this->mWiki, $wgConf->getWikisInVersion( $ts ) ) ) { |
352 | 350 | $count++; |
353 | 351 | $link = $skin->makeKnownLinkObj( $title, $wgLang->timeAndDate( $ts ), "version=$ts" ); |
354 | 352 | $diffLink = ''; |
— | — | @@ -377,6 +375,8 @@ |
378 | 376 | |
379 | 377 | ## Reset into descending order |
380 | 378 | $links = array_reverse( $links ); |
| 379 | + ## Take out the first ten... |
| 380 | + $links = array_slice( $links, 0, 10 ); |
381 | 381 | |
382 | 382 | $text = '<fieldset><legend>' . wfMsgHtml( 'configure-old' ) . '</legend>'; |
383 | 383 | if ( !count( $links ) ) { |