From: Tim Starling Date: Mon, 8 Feb 2010 07:01:46 +0000 (+0000) Subject: Initial fix for bug 20757. Committing for test on server. X-Git-Tag: 1.31.0-rc.0~37880 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28?a=commitdiff_plain;h=f90efc8847a00dcc7318559bac21ede56336c373;p=lhc%2Fweb%2Fwiklou.git Initial fix for bug 20757. Committing for test on server. --- diff --git a/includes/Revision.php b/includes/Revision.php index eeae08b3df..cbf5625f1d 100644 --- a/includes/Revision.php +++ b/includes/Revision.php @@ -750,7 +750,9 @@ class Revision { } global $wgLegacyEncoding; - if( $wgLegacyEncoding && !in_array( 'utf-8', $flags ) && !in_array( 'utf8', $flags ) ) { + if( $text !== false && $wgLegacyEncoding + && !in_array( 'utf-8', $flags ) && !in_array( 'utf8', $flags ) ) + { # Old revisions kept around in a legacy encoding? # Upconvert on demand. # ("utf8" checked for compatibility with some broken