Hard deprecate wfIsBadImage()
Bug: T249459 Depends-On: Iec58118198864704b1860aeb630476391e3a2c23 Change-Id: I939ded72427adc973739e7b376ea85cbf4b3e258
This commit is contained in:
parent
416dd55228
commit
567e1bbb5d
2 changed files with 2 additions and 0 deletions
|
|
@ -2802,6 +2802,7 @@ function wfUnpack( $format, $data, $length = false ) {
|
|||
* @return bool
|
||||
*/
|
||||
function wfIsBadImage( $name, $contextTitle = false ) {
|
||||
wfDeprecated( __FUNCTION__, '1.34' );
|
||||
$services = MediaWikiServices::getInstance();
|
||||
return $services->getBadFileLookup()->isBadFile( $name, $contextTitle ?: null );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ class GlobalWithDBTest extends MediaWikiTestCase {
|
|||
// Enable messages from MediaWiki namespace
|
||||
MediaWikiServices::getInstance()->getMessageCache()->enable();
|
||||
|
||||
$this->hideDeprecated( 'wfIsBadImage' );
|
||||
$this->assertEquals( $expected, wfIsBadImage( $name, $title ) );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue