render file description via ContentHandler
authordaniel <daniel.kinzler@wikimedia.de>
Fri, 8 Jun 2012 07:42:04 +0000 (09:42 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Fri, 8 Jun 2012 07:42:04 +0000 (09:42 +0200)
includes/filerepo/file/LocalFile.php

index 2f55ec1..22131c6 100644 (file)
@@ -1458,9 +1458,9 @@ class LocalFile extends File {
                global $wgParser;
                $revision = Revision::newFromTitle( $this->title );
                if ( !$revision ) return false;
-               $text = $revision->getText();
-               if ( !$text ) return false;
-               $pout = $wgParser->parse( $text, $this->title, new ParserOptions() );
+               $content = $revision->getContent();
+               if ( !$content ) return false;
+               $pout = $content->getParserOutput( $this->title, null, new ParserOptions() );
                return $pout->getText();
        }