From 1f75e936e535ea6cbc5263968e57ea77397b96ba Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 5 Aug 2015 05:06:36 -0400 Subject: [PATCH] Performance: Skip delegators list generation on every calendar refresh action --- plugins/kolab_delegation/kolab_delegation.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/kolab_delegation/kolab_delegation.php b/plugins/kolab_delegation/kolab_delegation.php index 8596009e..c828093c 100644 --- a/plugins/kolab_delegation/kolab_delegation.php +++ b/plugins/kolab_delegation/kolab_delegation.php @@ -80,7 +80,9 @@ class kolab_delegation extends rcube_plugin } // Calendar plugin UI bindings else if ($this->rc->task == 'calendar' && empty($_REQUEST['_framed'])) { - $this->calendar_ui(); + if ($this->rc->output->type == 'html') { + $this->calendar_ui(); + } } }