r45206 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45205‎ | r45206 | r45207 >
Date:21:43, 30 December 2008
Author:brion
Status:ok
Tags:
Comment:
Accept 'utf8' flag in place of 'utf-8' to compensate for entries broken by bug 16841 in recompressTracked.php stuff
Modified paths:
  • /trunk/phase3/includes/Revision.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Revision.php
@@ -720,9 +720,11 @@
721721 }
722722
723723 global $wgLegacyEncoding;
724 - if( $wgLegacyEncoding && !in_array( 'utf-8', $flags ) ) {
 724+ if( $wgLegacyEncoding && !in_array( 'utf-8', $flags ) && !in_array( 'utf8', $flags ) ) {
725725 # Old revisions kept around in a legacy encoding?
726726 # Upconvert on demand.
 727+ # ("utf8" checked for compatibility with some broken
 728+ # conversion scripts 2008-12-30)
727729 global $wgInputEncoding, $wgContLang;
728730 $text = $wgContLang->iconv( $wgLegacyEncoding, $wgInputEncoding, $text );
729731 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r45205(bug 16841) Fix typo (utf8 -> utf-8)aaron21:36, 30 December 2008

Status & tagging log