Improve settings page and move some config parameters to the database

This commit is contained in:
Frédéric Guillot
2014-10-04 23:31:03 -04:00
parent f531d57dc2
commit 8e5673e3d2
64 changed files with 710 additions and 248 deletions

View File

@@ -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;