diff --git a/plugins/tasklist/tasklist_ui.php b/plugins/tasklist/tasklist_ui.php index 17b13e91..5ff12eee 100644 --- a/plugins/tasklist/tasklist_ui.php +++ b/plugins/tasklist/tasklist_ui.php @@ -44,10 +44,6 @@ class tasklist_ui return; } - if ($this->rc->action && !in_array($this->rc->action, array('show', 'preview', 'print', 'index'))) { - return; - } - // add taskbar button $this->plugin->add_button(array( 'command' => 'tasks', @@ -57,6 +53,10 @@ class tasklist_ui 'label' => 'tasklist.navtitle', ), 'taskbar'); + if ($this->rc->action && !in_array($this->rc->action, array('show', 'preview', 'print', 'index'))) { + return; + } + $this->plugin->include_stylesheet($this->plugin->local_skin_path() . '/tasklist.css'); if ($this->rc->task == 'mail' || $this->rc->task == 'tasks') {