summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2013-05-11 07:09:13 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2013-05-11 07:09:13 (GMT)
commit34d92e3e71196e06f87100db59bd6a55675d08c0 (patch)
tree3376c74a867689d6272ae324e63ed817df2b2c47
parentf591f88699c8a90407aa9bd85129c03aa47b22f0 (diff)
downloadroundcubemail-plugins-kolab-34d92e3e71196e06f87100db59bd6a55675d08c0.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'));