From a5ed84d4d9cdd495d52026604d482d1a8e40e354 Mon Sep 17 00:00:00 2001 From: withoutaname Date: Thu, 17 Jul 2014 00:29:22 -0700 Subject: [PATCH] Remove deprecated global function wfViewPrevNext() Deprecated since 1.19, alternative is Language::viewPrevNext(). Change-Id: I26d8dec1475ac3f6592f8d0ef7936440c1a0f14d --- RELEASE-NOTES-1.24 | 1 + includes/GlobalFunctions.php | 30 ------------------------------ 2 files changed, 1 insertion(+), 30 deletions(-) diff --git a/RELEASE-NOTES-1.24 b/RELEASE-NOTES-1.24 index dbc1214ecd..fcef78d337 100644 --- a/RELEASE-NOTES-1.24 +++ b/RELEASE-NOTES-1.24 @@ -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 diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index cb5b7fdf61..d0af17939f 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -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 -- 2.20.1