summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2016-09-29 09:25:06 +0200
committermsquare <msquare@notrademark.de>2016-09-29 09:25:06 +0200
commit6685beb39784f63751b7cae6d211a5808c6e47a3 (patch)
treeea6f07976e9075fe2c4fd2bfc16a341e34c463d1 /public
parent50bf7feff0e0461e6afc7a6488dec1b898fa5abd (diff)
display event countdowns on start page
Diffstat (limited to 'public')
-rw-r--r--public/index.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/public/index.php b/public/index.php
index e8cb1e2f..7915e8a6 100644
--- a/public/index.php
+++ b/public/index.php
@@ -155,6 +155,11 @@ if (isset($_REQUEST['p']) && preg_match("/^[a-z0-9_]*$/i", $_REQUEST['p']) && (i
}
}
+$event_config = EventConfig();
+if ($event_config === false) {
+ engelsystem_error("Unable to load event config.");
+}
+
echo template_render('../templates/layout.html', array(
'theme' => isset($user) ? $user['color'] : $default_theme,
'title' => $title,
@@ -165,7 +170,7 @@ echo template_render('../templates/layout.html', array(
'faq_url' => $faq_url,
'contact_email' => $contact_email,
'locale' => locale(),
- 'event_info' => EventConfig_info() . '<br />'
+ 'event_info' => EventConfig_info($event_config) . '<br />'
));
?>