0.Removing mixing of operators
1. Fixing encoding problem in calendar names
This commit is contained in:
parent
e574f572be
commit
e00cc1e86a
2 changed files with 3 additions and 2 deletions
|
@ -435,7 +435,7 @@ class calendar extends rcube_plugin
|
||||||
$this->rc->output->show_message('calendar.errorsaving', 'error');
|
$this->rc->output->show_message('calendar.errorsaving', 'error');
|
||||||
|
|
||||||
// FIXME: update a single event object on the client instead of reloading the entire source
|
// FIXME: update a single event object on the client instead of reloading the entire source
|
||||||
if ($success && $reload or ($removed && $reload))
|
if ($success && $reload || ($removed && $reload))
|
||||||
$this->rc->output->command('plugin.reload_calendar', array('source' => $event['calendar']));
|
$this->rc->output->command('plugin.reload_calendar', array('source' => $event['calendar']));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -69,7 +69,8 @@ class kolab_calendar
|
||||||
public function get_name()
|
public function get_name()
|
||||||
{
|
{
|
||||||
$dispname = preg_replace(array('!INBOX/Calendar/!', '!^INBOX/!', '!^shared/!', '!^user/([^/]+)/!'), array('','','','(\\1) '), $this->imap_folder);
|
$dispname = preg_replace(array('!INBOX/Calendar/!', '!^INBOX/!', '!^shared/!', '!^user/([^/]+)/!'), array('','','','(\\1) '), $this->imap_folder);
|
||||||
return strlen($dispname) ? $dispname : $this->imap_folder;
|
$toret = strlen($dispname) ? $dispname : $this->imap_folder;
|
||||||
|
return mb_convert_encoding($toret,"UTF8", "UTF7-IMAP");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue