Fix arguments to call:
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 23 Aug 2008 01:12:00 +0000 (01:12 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 23 Aug 2008 01:12:00 +0000 (01:12 +0000)
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

index 1964156..5e2eb81 100644 (file)
@@ -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;
        }