From 7b4e9856b7fc73b6717909f6b0c1afd63b960b28 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 10 Jun 2016 05:40:50 -0400 Subject: [PATCH] Fix regression where Tasks button could be skipped e.g. in Settings UI --- plugins/tasklist/tasklist_ui.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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') {