Typo in last commit.
authorgustavf <gustavf@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 29 Feb 2000 14:35:44 +0000 (14:35 +0000)
committergustavf <gustavf@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 29 Feb 2000 14:35:44 +0000 (14:35 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@252 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/i18n.php

index 5d76cc0392cbc70aef5e56132b6eda6a2c681a47..c93750ae374c44450bff97b0edcae18c8e55e8b0 100644 (file)
@@ -31,7 +31,7 @@
             return charset_decode_iso_8859_default ($string);
       } else if ($charset == "ns_4551-1") {
          return charset_decode_ns_4551_1 ($string);
-      } else 
+      } else
          return $string;
    }
 
@@ -49,7 +49,7 @@
    }
 
    // iso-8859-1 is Greek.
-   function charset_decode_iso_8859_1 ($string) {
+   function charset_decode_iso_8859_7 ($string) {
       // Could not find Unicode equivalent of 0xA1 and 0xA2
       // 0xA4, 0xA5, 0xAA, 0xAE, 0xD2 and 0xFF should not be used
       $string = strtr($string, "\241\242\244\245\252\256\322\377", 
@@ -62,7 +62,7 @@
       // ISO-8859-7 characters from 11/04 (0xB4) to 11/06 (0xB6)
       // These are Unicode 900-902
       while (ereg("([\264-\266])", $string, $res)) {
-         $replace = "&#.".ord($res[1])+720.";";
+         $replace = "&#." . ord($res[1])+720 . ";";
          ereg_repleace("[\264-\266]", $replace, $string);
       }
 
@@ -71,7 +71,7 @@
       // ISO-8859-7 characters from 11/08 (0xB8) to 11/10 (0xBA)
       // These are Unicode 900-902
       while (ereg("([\270-\272])", $string, $res)) {
-         $replace = "&#.".ord($res[1])+720.";";
+         $replace = "&#." . ord($res[1])+720 . ";";
          ereg_repleace("[\270-\272]", $replace, $string);
       }
 
@@ -80,7 +80,7 @@
 
       // And now the rest of the charset
       while (ereg("([\273-\376])", $string, $res)) {
-         $replace = "&#.".ord($res[1])+720.";";
+         $replace = "&#." . ord($res[1])+720 . ";";
          ereg_repleace("[\273-\376]", $replace, $string);
       }