mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-16 20:58:28 +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
|
// ParserOption for dtreply was set in onArticleParserOptions
|
||||||
if ( $popts->getOption( 'dtreply' ) ) {
|
if ( $popts->getOption( 'dtreply' ) ) {
|
||||||
CommentFormatter::addDiscussionTools( $text );
|
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