From adc95714898a61d43f776e21ab3281411a2a3d39 Mon Sep 17 00:00:00 2001 From: tokul Date: Sun, 8 Aug 2004 14:53:36 +0000 Subject: [PATCH] xtra_code updates in utf7-imap functions git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7853 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_utf7_local.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/functions/imap_utf7_local.php b/functions/imap_utf7_local.php index e4c43109..17961e14 100644 --- a/functions/imap_utf7_local.php +++ b/functions/imap_utf7_local.php @@ -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 -- 2.25.1