Commit 4da1226d authored by Greg Rundlett's avatar Greg Rundlett

ParserOptions::setWrapOutputClass( false ) was deprecated in MediaWiki 1.31.

parent 0016bfd1
......@@ -83,8 +83,7 @@ class TreeAndMenu {
// Parse the bullets to HTML
$opt = $parser->getOptions();
if( method_exists( $opt, 'setWrapOutputClass' ) ) $opt->setWrapOutputClass( false );
$html = $parser->parse( $bullets, $parser->getTitle(), $opt, true, false )->getText();
$html = $parser->parse( $bullets, $parser->getTitle(), $opt, true, false )->getText(['unwrap' => true]);
// Determine the class and id attributes
$class = $type == TREEANDMENU_TREE ? 'fancytree' : 'suckerfish';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment