summaryrefslogtreecommitdiff
path: root/kanboard
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-10-04 23:31:03 -0400
committerFrédéric Guillot <fred@kanboard.net>2014-10-04 23:31:03 -0400
commit8e5673e3d289e4d28b4fc9f20721bda9f1c858c7 (patch)
treea5dc3eff7408e8709d20ea92b926c5424d70c5f9 /kanboard
parentf531d57dc27b9d1568de0a10b19f69e8c2b2f156 (diff)
Improve settings page and move some config parameters to the database
Diffstat (limited to 'kanboard')
-rwxr-xr-xkanboard10
1 files changed, 2 insertions, 8 deletions
diff --git a/kanboard b/kanboard
index d9c932f2..55a784cb 100755
--- a/kanboard
+++ b/kanboard
@@ -5,20 +5,14 @@ require __DIR__.'/app/common.php';
use Core\Cli;
use Core\Tool;
-use Core\Translator;
use Model\Config;
use Model\Task;
use Model\TaskExport;
use Model\Notification;
$config = new Config($registry);
-
-// Load translations
-$language = $config->get('language', 'en_US');
-if ($language !== 'en_US') Translator::load($language);
-
-// Set timezone
-date_default_timezone_set($config->get('timezone', 'UTC'));
+$config->setupTranslations();
+$config->setupTimezone();
// Setup CLI
$cli = new Cli;