summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2013-05-11 07:09:13 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2013-06-21 10:04:31 (GMT)
commit28138807bf2bb97856ebe0a916abc7ba60615e7f (patch)
treedd0f7f40240ee7a0cc7923881aad83d0c9e3aacb
parentdb0e50ce28c876f3672235fbd974d6089e63373c (diff)
downloadroundcubemail-plugins-kolab-28138807bf2bb97856ebe0a916abc7ba60615e7f.tar.gz
No need to set_env in ajax request (limits size of ajax response)
-rw-r--r--plugins/libcalendaring/libcalendaring.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/libcalendaring/libcalendaring.php b/plugins/libcalendaring/libcalendaring.php
index eb72e70..48a85b4 100644
--- a/plugins/libcalendaring/libcalendaring.php
+++ b/plugins/libcalendaring/libcalendaring.php
@@ -85,10 +85,11 @@ class libcalendaring extends rcube_plugin
// include client scripts and styles
if ($this->rc->output) {
- $this->include_script('libcalendaring.js');
- $this->rc->output->set_env('libcal_settings', $this->load_settings());
-
- $this->include_stylesheet($this->local_skin_path() . '/libcal.css');
+ if ($this->rc->output->type == 'html') {
+ $this->rc->output->set_env('libcal_settings', $this->load_settings());
+ $this->include_script('libcalendaring.js');
+ $this->include_stylesheet($this->local_skin_path() . '/libcal.css');
+ }
// add hook to display alarms
$this->add_hook('refresh', array($this, 'refresh'));