Now adds the 'begin::valendar' and end

This commit is contained in:
xdrm-brackets 2017-09-12 18:30:53 +02:00
parent 47118442e5
commit 4a775ccae9
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}
}