Merge "Load styles in ParserOutput too"

This commit is contained in:
jenkins-bot 2021-08-23 20:50:20 +00:00 committed by Gerrit Code Review
commit 2086851d44

View file

@ -65,6 +65,11 @@ class ParserHooks implements
// ParserOption for dtreply was set in onArticleParserOptions
if ( $popts->getOption( 'dtreply' ) ) {
CommentFormatter::addDiscussionTools( $text );
// Always load style modules that hide our extra buttons for users who don't have
// DiscussionTools features enabled
$parser->getOutput()->addModuleStyles( [
'ext.discussionTools.init.styles',
] );
}
}