From 3f9aedc3f3e8fe50bdb1ed8183b879534ae666f2 Mon Sep 17 00:00:00 2001 From: "Aleksander Machniak (Kolab Systems)" Date: Tue, 5 Jul 2011 11:20:08 +0200 Subject: [PATCH] Don't bind to 'save-pref' action for better performance --- plugins/calendar/calendar.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/calendar/calendar.php b/plugins/calendar/calendar.php index effa7099..8512972a 100644 --- a/plugins/calendar/calendar.php +++ b/plugins/calendar/calendar.php @@ -33,7 +33,7 @@ class calendar extends rcube_plugin public $ical; public $ui; - + public $defaults = array( 'calendar_default_view' => "agendaWeek", 'calendar_date_format' => "yyyy-MM-dd", @@ -92,7 +92,7 @@ class calendar extends rcube_plugin $this->include_stylesheet('skins/' . $skin . '/calendar.css'); } - if ($this->rc->task == 'calendar') { + if ($this->rc->task == 'calendar' && $this->rc->action != 'save-pref') { $this->load_driver(); // load iCalendar functions