From e6d8681e73f1e5033b3986f9e49d5d84be4ca16f Mon Sep 17 00:00:00 2001 From: daniel Date: Fri, 8 Jun 2012 09:42:04 +0200 Subject: [PATCH] render file description via ContentHandler --- includes/filerepo/file/LocalFile.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/filerepo/file/LocalFile.php b/includes/filerepo/file/LocalFile.php index 2f55ec1000..22131c61e5 100644 --- a/includes/filerepo/file/LocalFile.php +++ b/includes/filerepo/file/LocalFile.php @@ -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(); } -- 2.20.1