mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-29 02:25:44 +00:00
Merge "Load styles in ParserOutput too"
This commit is contained in:
commit
2086851d44
|
@ -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',
|
||||
] );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue