Anomie has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/393283 )
Change subject: ApiMobileView: Disable 'deduplicateStyles'
ParserOutput::getText() transformation
......................................................................
ApiMobileView: Disable 'deduplicateStyles' ParserOutput::getText()
transformation
action=mobileview needs the would-be-deduplicated styles in each
section it chops the article into.
For smaller output it could still deduplicate the styles within each
section. Doing so is left for a future patch.
Bug: T160563
Change-Id: Ib931e25ce85072000e62c486bbe5907f03372494
---
M includes/api/ApiMobileView.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend
refs/changes/83/393283/1
diff --git a/includes/api/ApiMobileView.php b/includes/api/ApiMobileView.php
index ccda585..65e633d 100644
--- a/includes/api/ApiMobileView.php
+++ b/includes/api/ApiMobileView.php
@@ -615,7 +615,7 @@
$this->dieWithError(
'apierror-mobilefrontend-badidtitle', 'invalidparams' );
return;
}
- $html = $parserOutput->getText( [ 'allowTOC' => false ]
);
+ $html = $parserOutput->getText( [ 'allowTOC' => false,
'deduplicateStyles' => false ] );
$cacheExpiry = $parserOutput->getCacheExpiry();
}
--
To view, visit https://gerrit.wikimedia.org/r/393283
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib931e25ce85072000e62c486bbe5907f03372494
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Anomie <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits