Move wfShowingResultsNum() back into SpecialSearch where it belongs. No need for...
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 6 Jul 2011 18:13:06 +0000 (18:13 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 6 Jul 2011 18:13:06 +0000 (18:13 +0000)
includes/GlobalFunctions.php
includes/specials/SpecialSearch.php

index 6d91732..367be73 100644 (file)
@@ -1476,25 +1476,6 @@ function wfShowingResults( $offset, $limit ) {
        );
 }
 
-/**
- * @todo document
- *
- * @param $offset Int
- * @param $limit Int
- * @param $num Int
- * @return String
- */
-function wfShowingResultsNum( $offset, $limit, $num ) {
-       global $wgLang;
-       return wfMsgExt(
-               'showingresultsnum',
-               array( 'parseinline' ),
-               $wgLang->formatNum( $limit ),
-               $wgLang->formatNum( $offset + 1 ),
-               $wgLang->formatNum( $num )
-       );
-}
-
 /**
  * Generate (prev x| next x) (20|50|100...) type links for paging
  *
index 0534abf..2d1dba1 100644 (file)
@@ -986,7 +986,11 @@ class SpecialSearch extends SpecialPage {
                        } elseif ( $resultsShown >= $this->limit ) {
                                $top = wfShowingResults( $this->offset, $this->limit );
                        } else {
-                               $top = wfShowingResultsNum( $this->offset, $this->limit, $resultsShown );
+                               $top =  wfMsgExt( 'showingresultsnum', array( 'parseinline' ),
+                                       $wgLang->formatNum( $this->limit ),
+                                       $wgLang->formatNum( $this->offset + 1 ),
+                                       $wgLang->formatNum( $resultsShown )
+                               );
                        }
                        $out .= Xml::tags( 'div', array( 'class' => 'results-info' ),
                                Xml::tags( 'ul', null, Xml::tags( 'li', null, $top ) )