| Index: trunk/phase3/includes/GlobalFunctions.php |
| — | — | @@ -1477,25 +1477,6 @@ |
| 1478 | 1478 | } |
| 1479 | 1479 | |
| 1480 | 1480 | /** |
| 1481 | | - * @todo document |
| 1482 | | - * |
| 1483 | | - * @param $offset Int |
| 1484 | | - * @param $limit Int |
| 1485 | | - * @param $num Int |
| 1486 | | - * @return String |
| 1487 | | - */ |
| 1488 | | -function wfShowingResultsNum( $offset, $limit, $num ) { |
| 1489 | | - global $wgLang; |
| 1490 | | - return wfMsgExt( |
| 1491 | | - 'showingresultsnum', |
| 1492 | | - array( 'parseinline' ), |
| 1493 | | - $wgLang->formatNum( $limit ), |
| 1494 | | - $wgLang->formatNum( $offset + 1 ), |
| 1495 | | - $wgLang->formatNum( $num ) |
| 1496 | | - ); |
| 1497 | | -} |
| 1498 | | - |
| 1499 | | -/** |
| 1500 | 1481 | * Generate (prev x| next x) (20|50|100...) type links for paging |
| 1501 | 1482 | * |
| 1502 | 1483 | * @param $offset String |
| Index: trunk/phase3/includes/specials/SpecialSearch.php |
| — | — | @@ -986,7 +986,11 @@ |
| 987 | 987 | } elseif ( $resultsShown >= $this->limit ) { |
| 988 | 988 | $top = wfShowingResults( $this->offset, $this->limit ); |
| 989 | 989 | } else { |
| 990 | | - $top = wfShowingResultsNum( $this->offset, $this->limit, $resultsShown ); |
| | 990 | + $top = wfMsgExt( 'showingresultsnum', array( 'parseinline' ), |
| | 991 | + $wgLang->formatNum( $this->limit ), |
| | 992 | + $wgLang->formatNum( $this->offset + 1 ), |
| | 993 | + $wgLang->formatNum( $resultsShown ) |
| | 994 | + ); |
| 991 | 995 | } |
| 992 | 996 | $out .= Xml::tags( 'div', array( 'class' => 'results-info' ), |
| 993 | 997 | Xml::tags( 'ul', null, Xml::tags( 'li', null, $top ) ) |