From: Chad Horohoe Date: Wed, 25 Jun 2014 18:22:39 +0000 (-0700) Subject: Deprecate wfCheckLimits(), nothing calls this anymore X-Git-Tag: 1.31.0-rc.0~15233^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=85d7e6203f90bb046de5bdfda7a54a94fc603c3f;p=lhc%2Fweb%2Fwiklou.git Deprecate wfCheckLimits(), nothing calls this anymore Some old things in SVN called it, hence the deprecation. Change-Id: Iefabd1a6bee261a393f3b1af083c8a075abf1e48 --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index ce5f8a3dea..eac40171e9 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -2111,9 +2111,11 @@ function wfClientAcceptsGzip( $force = false ) { * @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 ); }