Index: trunk/phase3/maintenance/language/messageTypes.inc |
— | — | @@ -502,8 +502,3 @@ |
503 | 503 | 'exif-gpsdirection-t', |
504 | 504 | 'exif-gpsdirection-m', |
505 | 505 | ); |
506 | | - |
507 | | -/** Messages that shouldn't be escaped with addcslashes (regexp, ...) */ |
508 | | -$wgNoEscapeMessages = array( |
509 | | - 'linkprefix', |
510 | | -); |
\ No newline at end of file |
Index: trunk/phase3/maintenance/language/writeMessagesArray.inc |
— | — | @@ -15,7 +15,6 @@ |
16 | 16 | static $messageComments; |
17 | 17 | static $ignoredMessages; |
18 | 18 | static $optionalMessages; |
19 | | - static $noEscapeMessages; |
20 | 19 | |
21 | 20 | /** |
22 | 21 | * Write a messages array as a PHP text and write it to the messages file. |
— | — | @@ -78,7 +77,6 @@ |
79 | 78 | require( dirname( __FILE__ ) . '/messageTypes.inc' ); |
80 | 79 | self::$ignoredMessages = $wgIgnoredMessages; |
81 | 80 | self::$optionalMessages = $wgOptionalMessages; |
82 | | - self::$noEscapeMessages = $wgNoEscapeMessages; |
83 | 81 | |
84 | 82 | self::$loaded = true; |
85 | 83 | } |
— | — | @@ -212,8 +210,7 @@ |
213 | 211 | |
214 | 212 | # Check for the appropriate apostrophe and add the value |
215 | 213 | # Quote \ here, because it needs always escaping |
216 | | - if( !in_array( $key, self::$noEscapeMessages ) ) |
217 | | - $value = addcslashes( $value, '\\' ); |
| 214 | + $value = addcslashes( $value, '\\' ); |
218 | 215 | |
219 | 216 | # For readability |
220 | 217 | $single = "'"; |