From 6685beb39784f63751b7cae6d211a5808c6e47a3 Mon Sep 17 00:00:00 2001 From: msquare Date: Thu, 29 Sep 2016 09:25:06 +0200 Subject: display event countdowns on start page --- public/index.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'public/index.php') 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() . '
' + 'event_info' => EventConfig_info($event_config) . '
' )); ?> -- cgit v1.3.1