summaryrefslogtreecommitdiffstats
path: root/app/controller
diff options
context:
space:
mode:
Diffstat (limited to 'app/controller')
-rw-r--r--app/controller/root.control.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/app/controller/root.control.php b/app/controller/root.control.php
index bb7bb4e..6263862 100644
--- a/app/controller/root.control.php
+++ b/app/controller/root.control.php
@@ -1,6 +1,7 @@
<?php
require_once "class/controller.class.php";
+require_once "controller/sysconf.control.php";
/*
* Root-level controller for Scrott app. This object will delegate the page request to the
@@ -13,9 +14,14 @@ class Root extends Controller
*/
function handle($argv)
{
+ /* First, make sure the system configuration file has been included */
+ if (!$this->scrottConfExists())
+ {
+ $ctrl = new Sysconf();
+ $ctrl->handle($argv);
+ }
+
/* TODO */
- $argv = $this->normalizeArgv($argv);
- echo implode("/", $argv);
}
/*