Merge "New helper ApiTestCase::setExpectedApiException()"
[lhc/web/wiklou.git] / includes / content / AbstractContent.php
index 284cab2..b6211b0 100644 (file)
@@ -501,7 +501,7 @@ abstract class AbstractContent implements Content {
                ParserOptions $options = null, $generateHtml = true
        ) {
                if ( $options === null ) {
-                       $options = $this->getContentHandler()->makeParserOptions( 'canonical' );
+                       $options = ParserOptions::newCanonical( 'canonical' );
                }
 
                $po = new ParserOutput();