Revert part of r50883, superseded by Tim's r51453
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Thu, 4 Jun 2009 07:38:00 +0000 (07:38 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Thu, 4 Jun 2009 07:38:00 +0000 (07:38 +0000)
includes/GlobalFunctions.php

index 41d4a6f..4e12e72 100644 (file)
@@ -646,8 +646,6 @@ function wfMsgGetKey( $key, $useDB, $langCode = false, $transform = true ) {
                $message = $wgMessageCache->get( $key, $useDB, $langCode );
                if ( $transform ) {
                        $message = $wgMessageCache->transform( $message );
-                       // Decode two entities used in messages, to allow them "pass" htmlspecialchars
-                       $message = str_replace( array( '&#32;', '&nbsp;' ), array( ' ', "\xc2\xa0" ), $message );
                }
        } else {
                $lang = wfGetLangObj( $langCode );
@@ -798,8 +796,6 @@ function wfMsgExt( $key, $options ) {
                        $string = $wgMessageCache->transform( $string,
                                !$forContent,
                                is_object( $langCode ) ? $langCode : null );
-                       // Decode two entities used in messages, to allow them "pass" htmlspecialchars
-                       $string = str_replace( array( '&#32;', '&nbsp;' ), array( ' ', "\xc2\xa0" ), $string );
                }
        }