Remove deprecated global function wfViewPrevNext()
authorwithoutaname <drevitchi@gmail.com>
Thu, 17 Jul 2014 07:29:22 +0000 (00:29 -0700)
committerWithoutaname <drevitchi@gmail.com>
Fri, 18 Jul 2014 21:20:00 +0000 (21:20 +0000)
Deprecated since 1.19, alternative is Language::viewPrevNext().

Change-Id: I26d8dec1475ac3f6592f8d0ef7936440c1a0f14d

RELEASE-NOTES-1.24
includes/GlobalFunctions.php

index dbc1214..fcef78d 100644 (file)
@@ -249,6 +249,7 @@ changes to languages because of Bugzilla reports.
 * Removed AjaxAddScript which has been obsolete since ResourceLoader and
   is unused by any modern extension.
 * Removed maintenance/nextJobDB.php; no longer in use.
+* Removed global function wfViewPrevNext(). (deprecated since 1.19)
 
 ==== Renamed classes ====
 * CLDRPluralRuleConverter_Expression to CLDRPluralRuleConverterExpression
index cb5b7fd..d0af179 100644 (file)
@@ -2028,36 +2028,6 @@ function wfShowingResults( $offset, $limit ) {
        return wfMessage( 'showingresults' )->numParams( $limit, $offset + 1 )->parse();
 }
 
-/**
- * Generate (prev x| next x) (20|50|100...) type links for paging
- *
- * @param string $offset
- * @param int $limit
- * @param string $link
- * @param string $query Optional URL query parameter string
- * @param bool $atend Optional param for specified if this is the last page
- * @return string
- * @deprecated since 1.19; use Language::viewPrevNext() instead
- */
-function wfViewPrevNext( $offset, $limit, $link, $query = '', $atend = false ) {
-       wfDeprecated( __METHOD__, '1.19' );
-
-       global $wgLang;
-
-       $query = wfCgiToArray( $query );
-
-       if ( is_object( $link ) ) {
-               $title = $link;
-       } else {
-               $title = Title::newFromText( $link );
-               if ( is_null( $title ) ) {
-                       return false;
-               }
-       }
-
-       return $wgLang->viewPrevNext( $title, $offset, $limit, $query, $atend );
-}
-
 /**
  * @todo document
  * @todo FIXME: We may want to blacklist some broken browsers