Remove calls to ParserOptions::setTidy()

ParserOptions::setTidy() was already a no-op in MW 1.35, and
Echo already requires MW >= 1.35 in extension.json.
ParserOptions::setTidy() was deprecated in MW 1.35 and will be removed
in a future release.

Bug: T198214
Change-Id: I6a5378a42a6cf035296ad549525c25438803970a
This commit is contained in:
C. Scott Ananian 2020-08-12 23:41:49 -04:00
parent 45700120f5
commit 37261f977e

View file

@ -437,7 +437,6 @@ abstract class EchoDiscussionParser {
$parser = MediaWikiServices::getInstance()->getParser();
$options = new ParserOptions( $article->getContext()->getUser() );
$options->setTidy( true );
$output = $parser->parse( $wikitext, $article->getTitle(), $options );
$cache[$cacheKey] = $output;