r88110 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r88109‎ | r88110 | r88111 >
Date:17:02, 14 May 2011
Author:ialex
Status:ok
Tags:
Comment:
Follow-up r87589: let's simplify this a bit :P
Modified paths:
  • /trunk/phase3/includes/OutputPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/OutputPage.php
@@ -1912,22 +1912,12 @@
19131913 }
19141914
19151915 /**
1916 - * Actually output something with print(). Performs an iconv to the
1917 - * output encoding, if needed.
 1916+ * Actually output something with print().
19181917 *
19191918 * @param $ins String: the string to output
19201919 */
19211920 public function out( $ins ) {
1922 - global $wgContLang;
1923 - if ( 0 == strcmp( 'UTF-8', 'UTF-8' ) ) {
1924 - $outs = $ins;
1925 - } else {
1926 - $outs = $wgContLang->iconv( 'UTF-8', 'UTF-8', $ins );
1927 - if ( false === $outs ) {
1928 - $outs = $ins;
1929 - }
1930 - }
1931 - print $outs;
 1921+ print $ins;
19321922 }
19331923
19341924 /**

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r87589Kill off the long deprecated $wgInputEncoding and $wgOutputEncoding globalsreedy22:09, 6 May 2011

Status & tagging log