jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/348220 )
Change subject: v1.2.2: restore compatibility with MW 1.27 after commit 28b4ebd ...................................................................... v1.2.2: restore compatibility with MW 1.27 after commit 28b4ebd Commit 28b4ebd switched from deprecated Article::getContent() to protected Article::getContentObject(). From now on we use WikiPage, as recommended in docs/ContentHandler.txt. Bug: T155088 Change-Id: I5b58a38a672cd37ff9e73f72cdb8cc2454ad65a9 --- M WidgetRenderer.php M Widgets.php 2 files changed, 3 insertions(+), 3 deletions(-) Approvals: Yaron Koren: Looks good to me, approved jenkins-bot: Verified diff --git a/WidgetRenderer.php b/WidgetRenderer.php index b741d09..27db8ad 100644 --- a/WidgetRenderer.php +++ b/WidgetRenderer.php @@ -172,8 +172,8 @@ $widgetCode = ''; } } else { - $widgetArticle = new Article( $widgetTitle ); - $widgetContent = $widgetArticle->getContentObject(); + $widgetWikiPage = new WikiPage( $widgetTitle ); + $widgetContent = $widgetWikiPage->getContent(); $widgetCode = ContentHandler::getContentText( $widgetContent ); } diff --git a/Widgets.php b/Widgets.php index 25b2e27..b9ce9ed 100644 --- a/Widgets.php +++ b/Widgets.php @@ -16,7 +16,7 @@ 'path' => __FILE__, 'name' => 'Widgets', 'descriptionmsg' => 'widgets-desc', - 'version' => '1.2.1', + 'version' => '1.2.2', 'author' => array( '[http://www.sergeychernyshev.com Sergey Chernyshev]', '...' ), 'url' => 'https://www.mediawiki.org/wiki/Extension:Widgets', 'license-name' => 'GPL-2.0+' -- To view, visit https://gerrit.wikimedia.org/r/348220 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I5b58a38a672cd37ff9e73f72cdb8cc2454ad65a9 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Widgets Gerrit-Branch: master Gerrit-Owner: FreedomFighterSparrow <freedomfighterspar...@gmail.com> Gerrit-Reviewer: Yaron Koren <yaro...@gmail.com> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits