From: Aaron Schulz Date: Sat, 23 Aug 2008 01:12:00 +0000 (+0000) Subject: Fix arguments to call: X-Git-Tag: 1.31.0-rc.0~45708 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=aef8fb5a6e14eb47d8cfa800d01d8f234c515153;p=lhc%2Fweb%2Fwiklou.git 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 --- 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; }