xtra_code updates in utf7-imap functions
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 8 Aug 2004 14:53:36 +0000 (14:53 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 8 Aug 2004 14:53:36 +0000 (14:53 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7853 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_utf7_local.php

index e4c4310..17961e1 100644 (file)
@@ -39,8 +39,8 @@ function imap_utf7_encode_local($s) {
     global $languages, $squirrelmail_language;
     
     if (isset($languages[$squirrelmail_language]['XTRA_CODE']) &&
-        function_exists($languages[$squirrelmail_language]['XTRA_CODE'])) {
-        return $languages[$squirrelmail_language]['XTRA_CODE']('utf7-imap_encode', $s);
+        function_exists($languages[$squirrelmail_language]['XTRA_CODE'].'_utf7_imap_encode')) {
+        return call_user_func($languages[$squirrelmail_language]['XTRA_CODE'] . '_utf7_imap_encode', $s);
     }
 
     if ($s == '')  //If empty, don't bother
@@ -92,8 +92,8 @@ function imap_utf7_decode_local($s) {
     global $languages, $squirrelmail_language;
     
     if (isset($languages[$squirrelmail_language]['XTRA_CODE']) &&
-        function_exists($languages[$squirrelmail_language]['XTRA_CODE'])) {
-        return $languages[$squirrelmail_language]['XTRA_CODE']('utf7-imap_decode', $s);
+        function_exists($languages[$squirrelmail_language]['XTRA_CODE'] . '_utf7_imap_decode')) {
+        return call_user_func($languages[$squirrelmail_language]['XTRA_CODE'] . '_utf7_imap_decode', $s);
     }
 
     if ($s == '')  //If empty, don't bother