r89478 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89477‎ | r89478 | r89479 >
Date:21:19, 4 June 2011
Author:platonides
Status:ok
Tags:
Comment:
Follow up r60599. Make normalizeUnicode() work even if $wgContLang is still not set,
just as it did before (eg. getGPCVal() check). This allows for early calls before
MediaWiki is completely initialised.
Modified paths:
  • /trunk/phase3/includes/WebRequest.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/WebRequest.php
@@ -227,7 +227,7 @@
228228 }
229229 } else {
230230 global $wgContLang;
231 - $data = $wgContLang->normalize( $data );
 231+ $data = isset( $wgContLang ) ? $wgContLang->normalize( $data ) : UtfNormal::cleanUp( $data );
232232 }
233233 return $data;
234234 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r60599Fix for bug 9413 and the related Malayalam issue reported on wikitech-l....tstarling08:28, 4 January 2010

Status & tagging log