summaryrefslogtreecommitdiff
path: root/plugins/odfviewer
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2012-08-01 14:25:57 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2012-08-01 14:25:57 (GMT)
commit8062cdb94afb6c4edba344e05a8d499244f1efee (patch)
tree2444d00999d9d62b60a7b86e6585e4a0be646510 /plugins/odfviewer
parent166b43581554160a3d32ff1843d0240ad9359236 (diff)
downloadroundcubemail-plugins-kolab-8062cdb94afb6c4edba344e05a8d499244f1efee.tar.gz
Make odfviewer also hook into task attachment display
Diffstat (limited to 'plugins/odfviewer')
-rw-r--r--plugins/odfviewer/odfviewer.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/odfviewer/odfviewer.php b/plugins/odfviewer/odfviewer.php
index 1e106bb..3ffb5b1 100644
--- a/plugins/odfviewer/odfviewer.php
+++ b/plugins/odfviewer/odfviewer.php
@@ -26,7 +26,7 @@
*/
class odfviewer extends rcube_plugin
{
- public $task = 'mail|calendar|logout';
+ public $task = 'mail|calendar|tasks|logout';
private $tempdir = 'plugins/odfviewer/files/';
private $tempbase = 'plugins/odfviewer/files/';
@@ -58,7 +58,7 @@ class odfviewer extends rcube_plugin
return;
// extend list of mimetypes that should open in preview
$rcmail = rcmail::get_instance();
- if ($rcmail->action == 'preview' || $rcmail->action == 'show' || $rcmail->task == 'calendar') {
+ if ($rcmail->action == 'preview' || $rcmail->action == 'show' || $rcmail->task == 'calendar' || $rcmail->task == 'tasks') {
$mimetypes = $rcmail->config->get('client_mimetypes', 'text/plain,text/html,text/xml,image/jpeg,image/gif,image/png,application/x-javascript,application/pdf,application/x-shockwave-flash');
if (!is_array($mimetypes))
$mimetypes = explode(',', $mimetypes);