summaryrefslogtreecommitdiff
path: root/jsonrpc.php
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 /jsonrpc.php
parentf531d57dc27b9d1568de0a10b19f69e8c2b2f156 (diff)
Improve settings page and move some config parameters to the database
Diffstat (limited to 'jsonrpc.php')
-rw-r--r--jsonrpc.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/jsonrpc.php b/jsonrpc.php
index 0ddb1e14..f577ef82 100644
--- a/jsonrpc.php
+++ b/jsonrpc.php
@@ -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
*/