Filip has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/326447 )
Change subject: Replaced "Article::getContent" deprecated in MediaWiki 1.21 ...................................................................... Replaced "Article::getContent" deprecated in MediaWiki 1.21 Replaced "Article" class with "WikiPage" Bug: T151973 Change-Id: If5ab7c0dd23269f6de51557029e8cc172621a767 --- M SpecialPrivateDomains.php 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PrivateDomains refs/changes/47/326447/1 diff --git a/SpecialPrivateDomains.php b/SpecialPrivateDomains.php index 0186224..73b7035 100644 --- a/SpecialPrivateDomains.php +++ b/SpecialPrivateDomains.php @@ -53,8 +53,8 @@ static function getParam( $name ) { $nameTitle = Title::newFromText( $name, NS_MEDIAWIKI ); if ( $nameTitle->exists() ) { - $article = new Article( $nameTitle ); - return $article->getContent(); + $page = new WikiPage( $nameTitle ); + return $page->getContent()->getNativeData(); } else { return ''; } -- To view, visit https://gerrit.wikimedia.org/r/326447 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If5ab7c0dd23269f6de51557029e8cc172621a767 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/PrivateDomains Gerrit-Branch: master Gerrit-Owner: Filip <r...@protonmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits