Deprecate wfCheckLimits(), nothing calls this anymore
authorChad Horohoe <chadh@wikimedia.org>
Wed, 25 Jun 2014 18:22:39 +0000 (11:22 -0700)
committerChad Horohoe <chadh@wikimedia.org>
Wed, 25 Jun 2014 18:22:39 +0000 (11:22 -0700)
Some old things in SVN called it, hence the deprecation.

Change-Id: Iefabd1a6bee261a393f3b1af083c8a075abf1e48

includes/GlobalFunctions.php

index ce5f8a3..eac4017 100644 (file)
@@ -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 );
 }