* linkprefix doesn't actually need any special handling because \\ and \ are identica...
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Sun, 6 Apr 2008 08:23:50 +0000 (08:23 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Sun, 6 Apr 2008 08:23:50 +0000 (08:23 +0000)
maintenance/language/messageTypes.inc
maintenance/language/writeMessagesArray.inc

index c1d5417..311ef53 100644 (file)
@@ -502,8 +502,3 @@ $wgEXIFMessages = array(
        'exif-gpsdirection-t',
        'exif-gpsdirection-m',
 );
-
-/** Messages that shouldn't be escaped with addcslashes (regexp, ...) */
-$wgNoEscapeMessages = array( 
-       'linkprefix',
-);
\ No newline at end of file
index be19c19..5e2b4a6 100644 (file)
@@ -15,7 +15,6 @@ class MessageWriter {
        static $messageComments;
        static $ignoredMessages;
        static $optionalMessages;
-       static $noEscapeMessages;
 
        /**
         * Write a messages array as a PHP text and write it to the messages file.
@@ -78,7 +77,6 @@ class MessageWriter {
                        require( dirname( __FILE__ ) . '/messageTypes.inc' );
                        self::$ignoredMessages = $wgIgnoredMessages;
                        self::$optionalMessages = $wgOptionalMessages;
-                       self::$noEscapeMessages = $wgNoEscapeMessages;
 
                        self::$loaded = true;
                }
@@ -212,8 +210,7 @@ $blockComment
 
                        # Check for the appropriate apostrophe and add the value
                        # Quote \ here, because it needs always escaping
-                       if( !in_array( $key, self::$noEscapeMessages ) )
-                               $value = addcslashes( $value, '\\' );
+                       $value = addcslashes( $value, '\\' );
 
                        # For readability
                        $single = "'";