Changeset View
Changeset View
Standalone View
Standalone View
plugins/tasklist/tasklist.php
Show First 20 Lines • Show All 1,250 Lines • ▼ Show 20 Lines | private function encode_task(&$rec) | ||||
} | } | ||||
foreach ((array)$rec['attachments'] as $k => $attachment) { | foreach ((array)$rec['attachments'] as $k => $attachment) { | ||||
$rec['attachments'][$k]['classname'] = rcube_utils::file2class($attachment['mimetype'], $attachment['name']); | $rec['attachments'][$k]['classname'] = rcube_utils::file2class($attachment['mimetype'], $attachment['name']); | ||||
} | } | ||||
// convert link URIs references into structs | // convert link URIs references into structs | ||||
if (array_key_exists('links', $rec)) { | if (array_key_exists('links', $rec)) { | ||||
foreach ((array)$rec['links'] as $i => $link) { | foreach ((array) $rec['links'] as $i => $link) { | ||||
if (strpos($link, 'imap://') === 0 && ($msgref = $this->driver->get_message_reference($link))) { | if (strpos($link, 'imap://') === 0 && ($msgref = $this->driver->get_message_reference($link, 'task'))) { | ||||
$rec['links'][$i] = $msgref; | $rec['links'][$i] = $msgref; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
// Convert HTML description into plain text | // Convert HTML description into plain text | ||||
if ($this->is_html($rec)) { | if ($this->is_html($rec)) { | ||||
$h2t = new rcube_html2text($rec['description'], false, true, 0); | $h2t = new rcube_html2text($rec['description'], false, true, 0); | ||||
▲ Show 20 Lines • Show All 1,012 Lines • Show Last 20 Lines |