From 6c70a2e5b2c29a4a1e08c205e859200db5ae220f Mon Sep 17 00:00:00 2001 From: Florian Date: Sat, 2 Jan 2016 23:56:38 +0100 Subject: [PATCH] Remove wfCheckLimits Change-Id: Iae5614a82681317afd1b96bc9ab1709fa3588539 --- RELEASE-NOTES-1.27 | 1 + includes/GlobalFunctions.php | 15 --------------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/RELEASE-NOTES-1.27 b/RELEASE-NOTES-1.27 index 8be703ead6..c98db50d5a 100644 --- a/RELEASE-NOTES-1.27 +++ b/RELEASE-NOTES-1.27 @@ -206,6 +206,7 @@ changes to languages because of Phabricator reports. * WikiPage::testPreSaveTransform() was removed (deprecated since 1.19). * LogPage::logName() was removed (deprecated since 1.19). * LogPage::logHeader() was removed (deprecated since 1.19). +* wfCheckLimits() was removed (deprecated since 1.24). == Compatibility == diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 075f69e55b..f71d765bbf 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -1996,21 +1996,6 @@ function wfClientAcceptsGzip( $force = false ) { return $result; } -/** - * Obtain the offset and limit values from the request string; - * used in special pages - * - * @param int $deflimit Default limit if none supplied - * @param string $optionname Name of a user preference to check against - * @return array - * @deprecated since 1.24, just call WebRequest::getLimitOffset() directly - */ -function wfCheckLimits( $deflimit = 50, $optionname = 'rclimit' ) { - global $wgRequest; - wfDeprecated( __METHOD__, '1.24' ); - return $wgRequest->getLimitOffset( $deflimit, $optionname ); -} - /** * Escapes the given text so that it may be output using addWikiText() * without any linking, formatting, etc. making its way through. This -- 2.20.1