Wctaiwan has uploaded a new change for review. https://gerrit.wikimedia.org/r/160873
Change subject: Use Title::hasContentModel() instead of a direct comparison ...................................................................... Use Title::hasContentModel() instead of a direct comparison Change-Id: Icbc78e38548fbd7f23fdf84a140b205668a80a86 --- M Thanks.hooks.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Thanks refs/changes/73/160873/1 diff --git a/Thanks.hooks.php b/Thanks.hooks.php index 2b91c7a..1f46164 100644 --- a/Thanks.hooks.php +++ b/Thanks.hooks.php @@ -281,7 +281,7 @@ * @return bool */ public static function onBeforePageDisplay( OutputPage $out, $skin ) { - if ( $out->getTitle()->getContentModel() === 'flow-board' ) { + if ( $out->getTitle()->hasContentModel( 'flow-board' ) ) { $out->addModules( 'ext.thanks.flowthank' ); } return true; -- To view, visit https://gerrit.wikimedia.org/r/160873 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Icbc78e38548fbd7f23fdf84a140b205668a80a86 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Thanks Gerrit-Branch: master Gerrit-Owner: Wctaiwan <wctai...@gmail.com> Gerrit-Reviewer: Legoktm <legoktm.wikipe...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits