aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/Context.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-09-07 09:34:03 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-09-07 09:34:03 +1200
commitbffaeb73d428d6b8cf78a727d9f48b6ef3722431 (patch)
tree29166801123bba650c140bcf40842591d51466db /src/org/traccar/Context.java
parent5f4e33e16040412edf3dbe34866a467429a9b37c (diff)
parent466364542c61e103d0e9d38aca70e729e688be35 (diff)
downloadtrackermap-server-bffaeb73d428d6b8cf78a727d9f48b6ef3722431.tar.gz
trackermap-server-bffaeb73d428d6b8cf78a727d9f48b6ef3722431.tar.bz2
trackermap-server-bffaeb73d428d6b8cf78a727d9f48b6ef3722431.zip
Merge pull request #1397 from vitalidze/master
Initialise API for old interface
Diffstat (limited to 'src/org/traccar/Context.java')
-rw-r--r--src/org/traccar/Context.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java
index f818368d0..80c9efb40 100644
--- a/src/org/traccar/Context.java
+++ b/src/org/traccar/Context.java
@@ -125,12 +125,10 @@ public class Context {
}
if (config.getBoolean("web.enable")) {
- if (!config.getBoolean("web.old")) {
+ if (config.getString("web.type", "new").equals("new") || config.getString("web.type", "new").equals("api")) {
permissionsManager = new PermissionsManager(dataManager);
- webServer = new WebServer(config);
- } else {
- webServer = new WebServer(config, dataManager.getDataSource());
}
+ webServer = new WebServer(config, dataManager.getDataSource());
}
serverManager = new ServerManager();