diff --git a/plugins/calendar/drivers/kolab/kolab_driver.php b/plugins/calendar/drivers/kolab/kolab_driver.php index 9098bfdd..2c146af4 100644 --- a/plugins/calendar/drivers/kolab/kolab_driver.php +++ b/plugins/calendar/drivers/kolab/kolab_driver.php @@ -114,13 +114,14 @@ class kolab_driver extends calendar_driver foreach ($folders as $id => $cal) { $fullname = $cal->get_name(); - $name = kolab_storage::folder_displayname($fullname, $names); + $listname = kolab_storage::folder_displayname($fullname, $names); // special handling for virtual folders if ($cal->virtual) { $calendars[$cal->id] = array( 'id' => $cal->id, - 'name' => $name, + 'name' => $fullname, + 'listname' => $listname, 'virtual' => true, 'readonly' => true, ); @@ -128,8 +129,8 @@ class kolab_driver extends calendar_driver else { $calendars[$cal->id] = array( 'id' => $cal->id, - 'name' => $name, - 'altname' => $fullname, + 'name' => $fullname, + 'listname' => $listname, 'editname' => $cal->get_foldername(), 'color' => $cal->get_color(), 'readonly' => $cal->readonly, diff --git a/plugins/calendar/lib/calendar_ui.php b/plugins/calendar/lib/calendar_ui.php index 9ea93efb..9ffb4ee7 100644 --- a/plugins/calendar/lib/calendar_ui.php +++ b/plugins/calendar/lib/calendar_ui.php @@ -200,7 +200,7 @@ class calendar_ui $html_id = html_identifier($id); $class = 'cal-' . asciiwords($id, true); - $title = !empty($prop['altname']) && $prop['altname'] != $prop['name'] ? html_entity_decode($prop['altname'], ENT_COMPAT, RCMAIL_CHARSET) : ''; + $title = $prop['name'] != $prop['listname'] ? html_entity_decode($prop['name'], ENT_COMPAT, RCMAIL_CHARSET) : ''; if ($prop['virtual']) $class .= ' virtual'; @@ -212,7 +212,7 @@ class calendar_ui $li .= html::tag('li', array('id' => 'rcmlical' . $html_id, 'class' => $class), ($prop['virtual'] ? '' : html::tag('input', array('type' => 'checkbox', 'name' => '_cal[]', 'value' => $id, 'checked' => $prop['active']), '') . html::span('handle', ' ')) . - html::span(array('class' => 'calname', 'title' => $title), $prop['name'])); + html::span(array('class' => 'calname', 'title' => $title), $prop['listname'])); } $this->rc->output->set_env('calendars', $jsenv); diff --git a/plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php b/plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php index 2062aad9..6e41fd75 100644 --- a/plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php +++ b/plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php @@ -95,14 +95,15 @@ class tasklist_kolab_driver extends tasklist_driver $path_imap = join($delim, $path_imap); $fullname = kolab_storage::object_name($utf7name); - $name = kolab_storage::folder_displayname($fullname, $listnames); + $listname = kolab_storage::folder_displayname($fullname, $listnames); // special handling for virtual folders if ($folder->virtual) { $list_id = kolab_storage::folder_id($utf7name); $this->lists[$list_id] = array( 'id' => $list_id, - 'name' => $name, + 'name' => $fullname, + 'listname' => $listname, 'virtual' => true, 'editable' => false, ); @@ -128,8 +129,8 @@ class tasklist_kolab_driver extends tasklist_driver $list_id = kolab_storage::folder_id($utf7name); $tasklist = array( 'id' => $list_id, - 'name' => $name, - 'altname' => $fullname, + 'name' => $fullname, + 'listname' => $listname, 'editname' => $editname, 'color' => $folder->get_color('0000CC'), 'showalarms' => isset($prefs[$list_id]['showalarms']) ? $prefs[$list_id]['showalarms'] : $alarms, diff --git a/plugins/tasklist/tasklist_ui.php b/plugins/tasklist/tasklist_ui.php index 99d08753..dab9b127 100644 --- a/plugins/tasklist/tasklist_ui.php +++ b/plugins/tasklist/tasklist_ui.php @@ -106,7 +106,7 @@ class tasklist_ui $html_id = html_identifier($id); $class = 'tasks-' . asciiwords($id, true); - $title = !empty($prop['altname']) && $prop['altname'] != $prop['name'] ? html_entity_decode($prop['altname'], ENT_COMPAT, RCMAIL_CHARSET) : ''; + $title = $prop['name'] != $prop['listname'] ? html_entity_decode($prop['name'], ENT_COMPAT, RCMAIL_CHARSET) : ''; if ($prop['virtual']) $class .= ' virtual'; @@ -118,7 +118,7 @@ class tasklist_ui $li .= html::tag('li', array('id' => 'rcmlitasklist' . $html_id, 'class' => $class), ($prop['virtual'] ? '' : html::tag('input', array('type' => 'checkbox', 'name' => '_list[]', 'value' => $id, 'checked' => $prop['active']))) . html::span('handle', ' ') . - html::span(array('class' => 'listname', 'title' => $title), $prop['name'])); + html::span(array('class' => 'listname', 'title' => $title), $prop['listname'])); } $this->rc->output->set_env('tasklists', $jsenv);