No need to set_env in ajax request (limits size of ajax response)

This commit is contained in:
Aleksander Machniak 2013-05-11 09:09:13 +02:00
parent f591f88699
commit 34d92e3e71

View file

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