summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/index.php b/index.php
index 0ea98c4..3e192f1 100644
--- a/index.php
+++ b/index.php
@@ -1,4 +1,5 @@
<?php
+
/*
* Looking Glass - An easy to deploy Looking Glass
* Copyright (C) 2014 Guillaume Mazoyer <gmazoyer@gravitons.in>
@@ -27,9 +28,7 @@ final class LookingGlass {
private $misc;
private $routers;
- function __construct() {
- global $config;
-
+ function __construct($config) {
$this->frontpage = $config['frontpage'];
$this->contact = $config['contact'];
$this->misc = $config['misc'];
@@ -243,7 +242,7 @@ final class LookingGlass {
}
}
-$looking_glass = new LookingGlass();
+$looking_glass = new LookingGlass($config);
$looking_glass->render();
// End of index.php