Catchable fatal error: Argument 2 passed to Parser::parse() must be an instance of Title, instance of ParserOptions given, called in C:\Server\xampp\htdocs\MW\includes\filerepo\LocalFile.php on line 1118 and defined in C:\Server\xampp\htdocs\MW\includes\parser\Parser.php on line 290
if ( !$revision ) return false;
$text = $revision->getText();
if ( !$text ) return false;
- $html = $wgParser->parse( $text, new ParserOptions );
+ $html = $wgParser->parse( $text, $this->title, new ParserOptions() );
return $html;
}