diff --git a/ics.php b/ics.php
index 671def2..bd2e92f 100644
--- a/ics.php
+++ b/ics.php
@@ -94,8 +94,18 @@ $recentonly = isset($params['recentonly']);
$weblink = isset($params['weblink']) ? $params['weblink'] : '';
$html = "
Evénements à venir
";
-$html .= "" . strftime('%A, %e %B %Y %H:%M') . "
";
-$html .= "En gras: modifié les $recent derniers jours
";
+
+$html .= "";
+if ($recentonly)
+{
+ $html .= "M";
+}
+else
+{
+ $html .= "En gras: m";
+}
+$html .= "odifié les $recent derniers jours
";
+
if ($weblink) {
$html .= "";
}
@@ -129,15 +139,9 @@ foreach ($o['VEVENTS'] as $e) {
$group[$year][$month][$week] = true;
}
$line = "getTimestamp()) . "\">";
- if ($e['DTSTAMP'] >= $lastmodified) {
- $line .= "";
- }
$line .= "$formatteddate: " . $e['SUMMARY'];
- if ($e['DTSTAMP'] >= $lastmodified) {
- $line .= "";
- }
$line .= '';
- if ($e['DTSTAMP'] >= $lastmodified) {
+ if ($e['DTSTAMP'] >= $lastmodified && !$recentonly) {
$line = "$line";
}
$html .= $line;