*sigh*...needs to return a string to not die in ImagePage
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 23 Aug 2008 01:19:44 +0000 (01:19 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 23 Aug 2008 01:19:44 +0000 (01:19 +0000)
includes/filerepo/LocalFile.php

index 5e2eb81..7aa641b 100644 (file)
@@ -1115,8 +1115,8 @@ class LocalFile extends File
                if ( !$revision ) return false;
                $text = $revision->getText();
                if ( !$text ) return false;
-               $html = $wgParser->parse( $text, $this->title, new ParserOptions() );
-               return $html;
+               $pout = $wgParser->parse( $text, $this->title, new ParserOptions() );
+               return $pout->getText();
        }
 
        function getDescription() {