Fix regression where Tasks button could be skipped e.g. in Settings UI

This commit is contained in:
Aleksander Machniak 2016-06-10 05:40:50 -04:00
parent dbc63628ac
commit 7b4e9856b7

View file

@ -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') {