summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-08-01 08:16:19 +0000
committeralecpl <alec@alec.pl>2011-08-01 08:16:19 +0000
commitf5e5702aa23e2c3b8b2b97a88e2d2918cccd1dbd (patch)
treefdb8900dfcd95514012c710f246aa927bde9acb7 /program/include
parent363514e30bcc31bf4055d39c9d90044b0e63ff3a (diff)
- Remove function duplicate (from last commit)
Diffstat (limited to 'program/include')
-rw-r--r--program/include/main.inc24
1 files changed, 0 insertions, 24 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index 140f1be6e..a9ab55ab6 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -2370,27 +2370,3 @@ function rcube_autocomplete_init()
$RCMAIL->output->set_env('autocomplete_min_length', $RCMAIL->config->get('autocomplete_min_length'));
$RCMAIL->output->add_label('autocompletechars');
}
-
-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);
-}