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

@@ -2,7 +2,6 @@
require __DIR__.'/app/common.php';
use Core\Translator;
use JsonRPC\Server;
use Model\Project;
use Model\ProjectPermission;
@@ -19,6 +18,9 @@ use Model\Webhook;
use Model\Notification;
$config = new Config($registry);
$config->setupTranslations();
$config->setupTimezone();
$project = new Project($registry);
$projectPermission = new ProjectPermission($registry);
$task = new Task($registry);
@@ -37,14 +39,9 @@ $project->attachEvents();
$webhook->attachEvents();
$notification->attachEvents();
// Load translations
$language = $config->get('language', 'en_US');
if ($language !== 'en_US') Translator::load($language);
$server = new Server;
$server->authentication(array('jsonrpc' => $config->get('api_token')));
/**
* Project procedures
*/