From: Aaron Schulz Date: Sat, 23 Aug 2008 01:19:44 +0000 (+0000) Subject: *sigh*...needs to return a string to not die in ImagePage X-Git-Tag: 1.31.0-rc.0~45707 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=52dba135d8146560643f0f6576ab1d064c3dc32f;p=lhc%2Fweb%2Fwiklou.git *sigh*...needs to return a string to not die in ImagePage --- diff --git a/includes/filerepo/LocalFile.php b/includes/filerepo/LocalFile.php index 5e2eb81e08..7aa641bc15 100644 --- a/includes/filerepo/LocalFile.php +++ b/includes/filerepo/LocalFile.php @@ -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() {