aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--includes/page/Article.php4
-rw-r--r--includes/parser/Parsoid/ParsoidParser.php3
2 files changed, 3 insertions, 4 deletions
diff --git a/includes/page/Article.php b/includes/page/Article.php
index afd944659e5e..37b6a296c777 100644
--- a/includes/page/Article.php
+++ b/includes/page/Article.php
@@ -567,10 +567,6 @@ class Article implements Page {
return;
}
- if ( $parserOptions->getUseParsoid() ) {
- $outputPage->addModules( 'mediawiki.skinning.content.parsoid' );
- }
-
# For the main page, overwrite the <title> element with the con-
# tents of 'pagetitle-view-mainpage' instead of the default (if
# that's not empty).
diff --git a/includes/parser/Parsoid/ParsoidParser.php b/includes/parser/Parsoid/ParsoidParser.php
index a4646b7c566e..cf23979b4ece 100644
--- a/includes/parser/Parsoid/ParsoidParser.php
+++ b/includes/parser/Parsoid/ParsoidParser.php
@@ -184,6 +184,9 @@ class ParsoidParser /* eventually this will extend \Parser */ {
$parserOutput->recordTimeProfile();
$this->makeLimitReport( $options, $parserOutput );
+ // Add Parsoid skinning module
+ $parserOutput->addModuleStyles( [ 'mediawiki.skinning.content.parsoid' ] );
+
// Record Parsoid version in extension data; this allows
// us to use the onRejectParserCacheValue hook to selectively
// expire "bad" generated content in the event of a rollback.