philippe_mingo 23 rokov pred
rodič
commit
2391925b00
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      functions/i18n.php

+ 1 - 1
functions/i18n.php

@@ -745,7 +745,7 @@ function set_up_language($sm_language, $do_search = false) {
         }
         setlocale(LC_ALL, $sm_notAlias);
         $squirrelmail_language = $sm_notAlias;
-        if ($squirrelmail_language == 'ja_JP') {
+        if ($squirrelmail_language == 'ja_JP' && function_exists('mb_detect_encoding') ) {
             header ('Content-Type: text/html; charset=EUC-JP');
             if (!function_exists('mb_internal_encoding')) {
                 echo _("You need to have php4 installed with the multibyte string function enabled (using configure option --with-mbstring).");