summaryrefslogtreecommitdiff
path: root/public/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/index.php')
-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 />'
));
?>