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:
Brad Jorsch 2018-07-11 12:34:25 -04:00
parent 5c147f2709
commit 435e06e2f5

View file

@ -123,7 +123,7 @@ class TemplateStylesContent extends TextContent {
ParserOptions $options = null, $generateHtml = true
) {
if ( $options === null ) {
$options = $this->getContentHandler()->makeParserOptions( 'canonical' );
$options = ParserOptions::newCanonical( 'canonical' );
}
// Inject our warnings into the resulting ParserOutput