Remove hard deprecated WebRequest::getLimitOffset
Bug: T245777 Change-Id: I25c97236bfa7ab0075ca19d5ec7554aa7f4f4cfe
This commit is contained in:
parent
fa652813c5
commit
db76cf323f
2 changed files with 1 additions and 16 deletions
|
|
@ -88,6 +88,7 @@ because of Phabricator reports.
|
|||
* Multiple methods that fell back to the $wgUser global variable were
|
||||
individually hard deprecated previously. The following have now been removed:
|
||||
- ApiTestCase::doLogin
|
||||
- WebRequest::getLimitOffset
|
||||
- All methods of the old SpecialPageFactory; the entire class was removed
|
||||
* The global function `wfWaitForSlaves`, deprecated in 1.27 and hard-deprecated
|
||||
in 1.35, has been removed. Use LBFactory::waitForReplication() instead.
|
||||
|
|
|
|||
|
|
@ -998,22 +998,6 @@ class WebRequest {
|
|||
return wfArrayToCgi( $newquery );
|
||||
}
|
||||
|
||||
/**
|
||||
* Same as ::getLimitOffsetForUser, but without a user parameter, instead using $wgUser
|
||||
*
|
||||
* @deprecated since 1.35, use ::getLimitOffsetForUser instead
|
||||
*
|
||||
* @param int $deflimit Limit to use if no input and the user hasn't set the option.
|
||||
* @param string $optionname To specify an option other than rclimit to pull from.
|
||||
* @return int[] First element is limit, second is offset
|
||||
*/
|
||||
public function getLimitOffset( $deflimit = 50, $optionname = 'rclimit' ) {
|
||||
wfDeprecated( __METHOD__, '1.35' );
|
||||
|
||||
global $wgUser;
|
||||
return $this->getLimitOffsetForUser( $wgUser, $deflimit, $optionname );
|
||||
}
|
||||
|
||||
/**
|
||||
* Check for limit and offset parameters on the input, and return sensible
|
||||
* defaults if not given. The limit must be positive and is capped at 5000.
|
||||
|
|
|
|||
Loading…
Reference in a new issue