diff options
author | Guillaume Mazoyer <respawneral@gmail.com> | 2014-08-13 00:37:41 +0200 |
---|---|---|
committer | Guillaume Mazoyer <respawneral@gmail.com> | 2014-08-13 00:37:41 +0200 |
commit | 4e527a860130837d9b153eebd856b68ab84bc008 (patch) | |
tree | 0790283482f574e566d224d035bc58a5254678ac | |
parent | af5ffca855baa020359254d88d2aacc3f04cc947 (diff) |
Tiny change, pass as parameter of the constructor.
-rw-r--r-- | index.php | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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 |