mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RSS
synced 2024-11-23 23:34:07 +00:00
Replace usages of Wikimedia\(suppress|restore)Warnings()
Change-Id: I5ef62930f0d4f9522de16b6271f084bc7cc77efe
This commit is contained in:
parent
7794f9e6a5
commit
32ec2ae33b
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use Wikimedia\AtEase\AtEase;
|
||||
|
||||
class RSSParser {
|
||||
protected $maxheads = 32;
|
||||
|
@ -567,7 +568,7 @@ class RSSParser {
|
|||
return Status::newFatal( 'rss-parse-error', 'No XML content' );
|
||||
}
|
||||
|
||||
Wikimedia\suppressWarnings();
|
||||
AtEase::suppressWarnings();
|
||||
|
||||
$oldDisable = false;
|
||||
if ( LIBXML_VERSION < 20900 ) {
|
||||
|
@ -579,7 +580,7 @@ class RSSParser {
|
|||
libxml_disable_entity_loader( $oldDisable );
|
||||
}
|
||||
|
||||
Wikimedia\restoreWarnings();
|
||||
AtEase::restoreWarnings();
|
||||
|
||||
$this->rss = new RSSData( $this->xml );
|
||||
|
||||
|
|
Loading…
Reference in a new issue