Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -646,6 +646,8 @@ |
647 | 647 | $message = $wgMessageCache->get( $key, $useDB, $langCode ); |
648 | 648 | if ( $transform ) { |
649 | 649 | $message = $wgMessageCache->transform( $message ); |
| 650 | + // Decode two entities used in messages, to allow them "pass" htmlspecialchars |
| 651 | + $message = str_replace( array( ' ', ' ' ), array( ' ', "\xc2\xa0" ), $message ); |
650 | 652 | } |
651 | 653 | } else { |
652 | 654 | $lang = wfGetLangObj( $langCode ); |
— | — | @@ -796,6 +798,8 @@ |
797 | 799 | $string = $wgMessageCache->transform( $string, |
798 | 800 | !$forContent, |
799 | 801 | is_object( $langCode ) ? $langCode : null ); |
| 802 | + // Decode two entities used in messages, to allow them "pass" htmlspecialchars |
| 803 | + $string = str_replace( array( ' ', ' ' ), array( ' ', "\xc2\xa0" ), $string ); |
800 | 804 | } |
801 | 805 | } |
802 | 806 | |
— | — | @@ -1078,7 +1082,7 @@ |
1079 | 1083 | wfNumLink( $offset, 250, $title, $query ), |
1080 | 1084 | wfNumLink( $offset, 500, $title, $query ) |
1081 | 1085 | ) ); |
1082 | | - return wfMsg( 'viewprevnext', $plink, $nlink, $nums ); |
| 1086 | + return wfMsgHtml( 'viewprevnext', $plink, $nlink, $nums ); |
1083 | 1087 | } |
1084 | 1088 | |
1085 | 1089 | /** |