summaryrefslogtreecommitdiffstats
path: root/apps/calendar/ajax/cache/rescan.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/calendar/ajax/cache/rescan.php')
-rw-r--r--apps/calendar/ajax/cache/rescan.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/calendar/ajax/cache/rescan.php b/apps/calendar/ajax/cache/rescan.php
index 1355179b957..3417f1ae4b4 100644
--- a/apps/calendar/ajax/cache/rescan.php
+++ b/apps/calendar/ajax/cache/rescan.php
@@ -7,5 +7,9 @@
*/
OCP\JSON::checkLoggedIn();
OCP\JSON::checkAppEnabled('calendar');
-OC_Calendar_Repeat::cleancalendar(OCP\USER::getUser());
-OC_Calendar_Repeat::generatecalendar(OCP\USER::getUser()); \ No newline at end of file
+$calendars = OC_Calendar_Calendar::allCalendars(OCP\USER::getUser());
+foreach($calendars as $calendar){
+ OC_Calendar_Repeat::cleancalendar($calendar['id']);
+ OC_Calendar_Repeat::generatecalendar($calendar['id']);
+}
+OCP\JSON::success(); \ No newline at end of file