// Try to update in calendar.
if ($registry->hasMethod('calendar/replace')) {
try {
- $registry->call('calendar/replace', array('uid' => $guid, 'content' => $components[$key], 'contentType' => $this->mime_part->getType()));
+ $registry->call('calendar/replace', array('uid' => $guid, 'content' => $components[$key], 'contentType' => $this->_mimepart->getType()));
$handled = true;
$url = Horde::url($registry->link('calendar/show', array('uid' => $guid)));
$msgs[] = array('success', _("The event was updated in your calendar.") .
// Import into calendar.
$handled = true;
try {
- $guid = $registry->call('calendar/import', array('content' => $components[$key], 'contentType' => $this->mime_part->getType()));
+ $guid = $registry->call('calendar/import', array('content' => $components[$key], 'contentType' => $this->_mimepart->getType()));
$url = Horde::url($registry->link('calendar/show', array('uid' => $guid)));
$msgs[] = array('success', _("The event was added to your calendar.") .
' ' . Horde::link($url, _("View event"), null, '_blank') . Horde::img('mime/icalendar.png', _("View event"), null, $registry->getImageDir('horde')) . '</a>');
// Import into Nag.
if ($registry->hasMethod('tasks/import')) {
try {
- $guid = $registry->call('tasks/import', array($components[$key], $this->mime_part->getType()));
+ $guid = $registry->call('tasks/import', array($components[$key], $this->_mimepart->getType()));
$url = Horde::url($registry->link('tasks/show', array('uid' => $guid)));
$msgs[] = array('success', _("The task has been added to your tasklist.") .
' ' . Horde::link($url, _("View task"), null, '_blank') . Horde::img('mime/icalendar.png', _("View task"), null, $registry->getImageDir('horde')) . '</a>');