aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorMaZderMind2016-12-11 20:01:33 +0100
committerMaZderMind2016-12-11 20:37:54 +0100
commit738878b8b060b3cfcdde2d88a1a28d5ce83e4aa7 (patch)
treec661d7f1a73b1c4e6640389898a8bac32023fb16 /index.php
parenta38a7fcc85c99fa8bd17dd591a5dcad07577c306 (diff)
better handling for legacy config errors
Diffstat (limited to 'index.php')
-rw-r--r--index.php30
1 files changed, 14 insertions, 16 deletions
diff --git a/index.php b/index.php
index 414dede..ef3944c 100644
--- a/index.php
+++ b/index.php
@@ -153,25 +153,23 @@ catch(Exception $e)
}
-
// PER-CONFERENCE CODE
-$conference = Conferences::getConference($mandator);
-
-// update template information
-$tpl->set(array(
- 'baseurl' => forceslash(baseurl()),
- 'route' => $route,
- 'canonicalurl' => joinpath([baseurl(), $mandator, $route]),
- 'conference_assets' => forceslash($mandator),
-
- 'conference' => $conference,
- 'feedback' => $conference->getFeedback(),
- 'schedule' => $conference->getSchedule(),
- 'subtitles' => $conference->getSubtitles(),
-));
-
ob_start();
try {
+ $conference = Conferences::getConference($mandator);
+
+ // update template information
+ $tpl->set(array(
+ 'baseurl' => forceslash(baseurl()),
+ 'route' => $route,
+ 'canonicalurl' => joinpath([baseurl(), $mandator, $route]),
+ 'conference_assets' => forceslash($mandator),
+
+ 'conference' => $conference,
+ 'feedback' => $conference->getFeedback(),
+ 'schedule' => $conference->getSchedule(),
+ 'subtitles' => $conference->getSubtitles(),
+ ));
// ALWAYS AVAILABLE ROUTES
if($route == 'feedback/read')