summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Mazoyer <respawneral@gmail.com>2014-08-13 00:37:41 +0200
committerGuillaume Mazoyer <respawneral@gmail.com>2014-08-13 00:37:41 +0200
commit4e527a860130837d9b153eebd856b68ab84bc008 (patch)
tree0790283482f574e566d224d035bc58a5254678ac
parentaf5ffca855baa020359254d88d2aacc3f04cc947 (diff)
Tiny change, pass as parameter of the constructor.
-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