Hard-deprecate global function wfShowingResults

Bug: T264980
Change-Id: If5e7aa5b975c880f41db624df3800ca04b9fea70
This commit is contained in:
Umherirrender 2022-12-18 17:15:39 +01:00
parent 82466b0594
commit 262269d5a0
2 changed files with 3 additions and 0 deletions

View file

@ -292,6 +292,7 @@ because of Phabricator reports.
now emits deprecation warnings.
* IndexPager::getHookContainer is deprecated and emits deprecation warnings.
Inject a HookContainer instead.
* Global function wfShowingResults is deprecated and emits deprecation warnings.
* AbstractBlock::getPermissionsError(), deprecated in 1.35, now emits
deprecation warnings.
* The following functions are deprecated: isBlockedGlobally, getGlobalBlock.

View file

@ -1120,11 +1120,13 @@ function wfFormatStackFrame( $frame ) {
/**
* @todo document
*
* @deprecated with warnings since 1.40
* @param int $offset
* @param int $limit
* @return string
*/
function wfShowingResults( $offset, $limit ) {
wfDeprecated( __FUNCTION__, '1.40' );
return wfMessage( 'showingresults' )->numParams( $limit, $offset + 1 )->parse();
}