mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateStyles
synced 2024-11-24 08:14:23 +00:00
Replace deprecated ContentHandler::makeParserOptions()
Having a different ParserOptions for each content model isn't feasible in an MCR world. And the only thing using this was Wikibase, which has been fixed to do what it needs in a different way. Bug: T194263 Change-Id: Ia95f3e2c1ea944366ff9a478c3c86f8565023394 Depends-On: I01373b29ee25fa9346c6b0317155be4ccdc8c515
This commit is contained in:
parent
5c147f2709
commit
435e06e2f5
|
@ -123,7 +123,7 @@ class TemplateStylesContent extends TextContent {
|
||||||
ParserOptions $options = null, $generateHtml = true
|
ParserOptions $options = null, $generateHtml = true
|
||||||
) {
|
) {
|
||||||
if ( $options === null ) {
|
if ( $options === null ) {
|
||||||
$options = $this->getContentHandler()->makeParserOptions( 'canonical' );
|
$options = ParserOptions::newCanonical( 'canonical' );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Inject our warnings into the resulting ParserOutput
|
// Inject our warnings into the resulting ParserOutput
|
||||||
|
|
Loading…
Reference in a new issue