summaryrefslogtreecommitdiff
path: root/plugins/libcalendaring/libcalendaring.php
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-07-29 13:28:35 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-07-29 13:33:35 (GMT)
commita68982b0287abbf27b478c16038c5a58ec2e9a0e (patch)
treef456aa81ba93666c235cb463abc80905c81e081b /plugins/libcalendaring/libcalendaring.php
parentf3b31c863d0f28596377120106f621e21f892cf3 (diff)
downloadroundcubemail-plugins-kolab-a68982b0287abbf27b478c16038c5a58ec2e9a0e.tar.gz
Add UI elements to display the history of a calendar event with data from the Bonnie API (#3093, #3094) + new option to download and send single events
Diffstat (limited to 'plugins/libcalendaring/libcalendaring.php')
-rw-r--r--plugins/libcalendaring/libcalendaring.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/plugins/libcalendaring/libcalendaring.php b/plugins/libcalendaring/libcalendaring.php
index 9c507a3..d267da5 100644
--- a/plugins/libcalendaring/libcalendaring.php
+++ b/plugins/libcalendaring/libcalendaring.php
@@ -746,7 +746,17 @@ class libcalendaring extends rcube_plugin
$until = $this->gettext('forever');
}
- return rtrim($freq . $details . ', ' . $until);
+ $except = '';
+ if (is_array($rrule['EXDATE']) && !empty($rrule['EXDATE'])) {
+ $format = self::to_php_date_format($this->rc->config->get('calendar_date_format', $this->defaults['calendar_date_format']));
+ $exdates = array_map(
+ function($dt) use ($format) { return format_date($dt, $format); },
+ array_slice($rrule['EXDATE'], 0, 10)
+ );
+ $except = '; ' . $this->gettext('except') . ' ' . join(', ');
+ }
+
+ return rtrim($freq . $details . ', ' . $until . $except);
}
/**