aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--App.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/App.php b/App.php
index f62a9ef..6eb9a24 100644
--- a/App.php
+++ b/App.php
@@ -25,7 +25,8 @@ class App
}
if (!$controller) {
- $controller = "user";
+ $dc = self::conf("defaults.route");
+ $controller = $dc;
}
ob_start();
@@ -76,6 +77,9 @@ class App
$cpath = realpath("../system/config.ini");
$config = parse_ini_file($cpath, true);
$config = $config['development'];
+ if ($key && ! $config[$key]) {
+ return self::error("No such config key: $key");
+ }
return ($key) ? $config[$key] : $config;
}