}
list($targetType, $targetcalendar) = explode('_', Horde_Util::getFormData('targetcalendar'), 2);
- if (strpos($targetcalendar, ':')) {
- list($calendar_id, $user) = explode(':', $targetcalendar, 2);
+ if (strpos($targetcalendar, '\\')) {
+ list($calendar_id, $user) = explode('\\', $targetcalendar, 2);
} else {
$calendar_id = $targetcalendar;
$user = $GLOBALS['registry']->getAuth();
list($sourceType, $source) = explode('_', Horde_Util::getFormData('existingcalendar'), 2);
list($targetType, $targetcalendar) = explode('_', Horde_Util::getFormData('targetcalendar'), 2);
- if (strpos($targetcalendar, ':')) {
- list($target, $user) = explode(':', $targetcalendar, 2);
+ if (strpos($targetcalendar, '\\')) {
+ list($target, $user) = explode('\\', $targetcalendar, 2);
} else {
$target = $targetcalendar;
$user = $GLOBALS['registry']->getAuth();
if ($this->_vars->event &&
$this->_vars->cal &&
$this->_vars->cal != $this->_vars->targetcalendar) {
- if (strpos($kronolith_driver->calendar, ':')) {
- list($target, $user) = explode(':', $kronolith_driver->calendar, 2);
+ if (strpos($kronolith_driver->calendar, '\\')) {
+ list($target, $user) = explode('\\', $kronolith_driver->calendar, 2);
} else {
$target = $kronolith_driver->calendar;
$user = $GLOBALS['registry']->getAuth();
// Event owner.
$targetcalendar = Horde_Util::getFormData('targetcalendar');
- if (strpos($targetcalendar, ':')) {
- list(, $this->creator) = explode(':', $targetcalendar, 2);
+ if (strpos($targetcalendar, '\\')) {
+ list(, $this->creator) = explode('\\', $targetcalendar, 2);
} elseif (!isset($this->id)) {
$this->creator = $GLOBALS['registry']->getAuth();
}
if ($cal->hasPermission(Horde_Perms::EDIT)) {
$delegates[$id] = htmlspecialchars($cal->name());
} else {
- $delegates[$id . ':' . $cal->owner()] = htmlspecialchars($cal->name(). ' (' . sprintf(_("as %s"), Kronolith::getUserName($cal->owner())) . ')');
+ $delegates[$cal->owner() . '\\' . $id] = htmlspecialchars($cal->name(). ' (' . sprintf(_("as %s"), Kronolith::getUserName($cal->owner())) . ')');
}
foreach ($delegates as $delegate_id => $cal_name) {
$sel = ($delegate_id == $calendar_id) ? ' selected="selected"' : '';