From aef8fb5a6e14eb47d8cfa800d01d8f234c515153 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 23 Aug 2008 01:12:00 +0000 Subject: [PATCH] Fix arguments to call: 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 --- includes/filerepo/LocalFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/filerepo/LocalFile.php b/includes/filerepo/LocalFile.php index 1964156e2d..5e2eb81e08 100644 --- a/includes/filerepo/LocalFile.php +++ b/includes/filerepo/LocalFile.php @@ -1115,7 +1115,7 @@ class LocalFile extends File 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; } -- 2.20.1