aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php15
1 files changed, 9 insertions, 6 deletions
diff --git a/index.php b/index.php
index b7fe5da..c3199ee 100644
--- a/index.php
+++ b/index.php
@@ -29,13 +29,21 @@ try {
$route = @$_GET['route'];
$route = rtrim($route, '/');
- // GLOBAL CSS (for conferences overview)
+ // GLOBAL ROUTES
if($route == 'gen/main.css')
{
+ // global css (for conferences overview)
handle_lesscss_request('assets/css/main.less', '../assets/css/');
exit;
}
+ else if($route == 'streams/v1.json')
+ {
+ require('view/streams-json-v1.php');
+ exit;
+ }
+
+
// generic template
$tpl = new PhpTemplate('template/page.phtml');
$tpl->set(array(
@@ -136,11 +144,6 @@ try {
require('view/schedule-json.php');
}
- else if($route == 'streams/v1.json')
- {
- require('view/streams-json-v1.php');
- }
-
else if($route == 'gen/main.css')
{
if(Conferences::hasCustomStyles($mandator))