From 4a775ccae96eb187d62b44b4bae41857cddabe2c Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 12 Sep 2017 18:30:53 +0200 Subject: [PATCH] Now adds the 'begin::valendar' and end --- build/service/Updater.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build/service/Updater.php b/build/service/Updater.php index 56b4e19..8101f21 100644 --- a/build/service/Updater.php +++ b/build/service/Updater.php @@ -43,6 +43,8 @@ =========================================================*/ foreach($this->config->getDiplomes() as $d_id=>$d_name){ + file_put_contents(__ROOT__."/tmp/$d_id.ics", "BEGIN:VCALENDAR", FILE_APPEND); + /* (1) Browse each date ---------------------------------------------------------*/ foreach($this->config->getPeriods() as $p_id=>$p_date){ @@ -63,6 +65,8 @@ } + file_put_contents(__ROOT__."/tmp/$d_id.ics", "END:VCALENDAR", FILE_APPEND); + } }