[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kolab-commits
Subject:    Branch 'roundcubemail-plugins-kolab-0.7' - plugins/calendar
From:       Thomas_BrĂ¼derli <bruederli () kolabsys ! com>
Date:       2013-01-30 20:33:31
Message-ID: 20130130203331.AF6431FBA9D () app01 ! kolabsys ! com
[Download RAW message or body]

 plugins/calendar/calendar.php        |    6 +++---
 plugins/calendar/config.inc.php.dist |    9 +++++----
 2 files changed, 8 insertions(+), 7 deletions(-)

New commits:
commit 32c9ed6a2b34a939a4cffefd2e670b7b9789c0f7
Author: Thomas Bruederli <bruederli@kolabsys.com>
Date:   Wed Jan 30 15:51:48 2013 +0100

    Change default value of 'calendar_itip_dtstampcheck' to false in order to be in \
sync with other branches

diff --git a/plugins/calendar/calendar.php b/plugins/calendar/calendar.php
index 5121e88..c8dc4bd 100644
--- a/plugins/calendar/calendar.php
+++ b/plugins/calendar/calendar.php
@@ -8,7 +8,7 @@
  * @author Thomas Bruederli <bruederli@kolabsys.com>
  *
  * Copyright (C) 2010, Lazlo Westerhof - Netherlands
- * Copyright (C) 2011, Kolab Systems AG <contact@kolabsys.com>
+ * Copyright (C) 2013, Kolab Systems AG <contact@kolabsys.com>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU Affero General Public License as
@@ -740,7 +740,7 @@ class calendar extends rcube_plugin
         }
         else if (in_array($status, array('ACCEPTED','TENTATIVE','DECLINED'))) {
           $html = html::div('rsvp-status ' . strtolower($status), \
                $this->gettext('youhave'.strtolower($status)));
-          if ($this->rc->config->get('calendar_itip_dtstampcheck', true) && \
$existing['changed'] && $event['changed'] < $existing['changed']) { +          if \
($this->rc->config->get('calendar_itip_dtstampcheck', false) && $existing['changed'] \
&& $event['changed'] < $existing['changed']) {  $action = '';
           }
         }
@@ -2213,7 +2213,7 @@ class calendar extends rcube_plugin
           }
           // import the (newer) event
           // TODO: compare SEQUENCE numbers instead of changed dates
-          else if ($event['changed'] >= $existing['changed'] || \
!$this->rc->config->get('calendar_itip_dtstampcheck', true)) { +          else if \
($event['changed'] >= $existing['changed'] || \
!$this->rc->config->get('calendar_itip_dtstampcheck', false)) {  $event['id'] = \
$existing['id'];  $event['calendar'] = $existing['calendar'];
             $success = $this->driver->edit_event($event);
diff --git a/plugins/calendar/config.inc.php.dist \
b/plugins/calendar/config.inc.php.dist index 13c984a..4b78297 100644
--- a/plugins/calendar/config.inc.php.dist
+++ b/plugins/calendar/config.inc.php.dist
@@ -5,7 +5,7 @@
  | Version 0.7.4                                                           |
  |                                                                         |
  | Copyright (C) 2010, Lazlo Westerhof - Netherlands                       |
- | Copyright (C) 2011, Kolab Systems AG                                    |
+ | Copyright (C) 2013, Kolab Systems AG                                    |
  |                                                                         |
  | This program is free software: you can redistribute it and/or modify    |
  | it under the terms of the GNU Affero General Public License as          |
@@ -21,9 +21,10 @@
 // backend type (database, google, kolab)
 $rcmail_config['calendar_driver'] = "database";
 
-// optionally disable the DTSTAMP check of iTip messages (enabled by default)
-// setting this to false will always show RSVP buttons, even for invitations older \
                than the local copy
-$rcmail_config['calendar_itip_dtstampcheck'] = true;
+// optionally enable the DTSTAMP check for iTip messages (disabled by default).
+// setting this to true will only show RSVP buttons if an iTip inivation is newer
+// than the local copy of the matching event.
+$rcmail_config['calendar_itip_dtstampcheck'] = false;
 
 // default calendar view (agendaDay, agendaWeek, month)
 $rcmail_config['calendar_default_view'] = "agendaWeek";


_______________________________________________
kolab-commits mailing list
kolab-commits@kolab.org
https://www.intevation.de/mailman/listinfo/kolab-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic