Performance: Don't load tasklist UI elements when not needed

This commit is contained in:
Aleksander Machniak 2016-02-25 18:40:54 +01:00
parent ffdc0454e0
commit e6a9819c32

View file

@ -44,6 +44,10 @@ 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',