diff options
author | alecpl <alec@alec.pl> | 2011-08-01 08:15:22 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-08-01 08:15:22 +0000 |
commit | 363514e30bcc31bf4055d39c9d90044b0e63ff3a (patch) | |
tree | 9972cfdcad1f77f22be3bdaab226f60a0939dc9b /program/steps | |
parent | 1cd36267a19a2b0accda66827dbdc05ec5ec77be (diff) |
- Move rcmail_localize_folderpath() to main.inc
Diffstat (limited to 'program/steps')
-rw-r--r-- | program/steps/settings/edit_folder.inc | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/program/steps/settings/edit_folder.inc b/program/steps/settings/edit_folder.inc index 710c3ff08..fe9cdc082 100644 --- a/program/steps/settings/edit_folder.inc +++ b/program/steps/settings/edit_folder.inc @@ -289,30 +289,6 @@ function rcmail_get_form_part($form) return $content; } -function rcmail_localize_folderpath($path) -{ - global $RCMAIL; - - $protect_folders = $RCMAIL->config->get('protect_default_folders'); - $default_folders = (array) $RCMAIL->config->get('default_imap_folders'); - $delimiter = $RCMAIL->imap->get_hierarchy_delimiter(); - $path = explode($delimiter, $path); - $result = array(); - - foreach ($path as $idx => $dir) { - $directory = implode($delimiter, array_slice($path, 0, $idx+1)); - if ($protect_folders && in_array($directory, $default_folders)) { - unset($result); - $result[] = rcmail_localize_foldername($directory); - } - else { - $result[] = rcube_charset_convert($dir, 'UTF7-IMAP'); - } - } - - return implode($delimiter, $result); -} - //$OUTPUT->set_pagetitle(rcube_label('folders')); |