aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/web
diff options
context:
space:
mode:
authorAnton Tananaev <atananaev@lyft.com>2020-12-29 13:05:07 -0800
committerAnton Tananaev <atananaev@lyft.com>2020-12-29 13:05:07 -0800
commitf94951e7e78956b2bbd438665ff290a472afde76 (patch)
tree21ae964507b4e4e3a3c7f657e9057375c35701d1 /src/main/java/org/traccar/web
parent152d8fe43e4e7c15308ea39a19ac6c10da871ef7 (diff)
downloadtrackermap-server-f94951e7e78956b2bbd438665ff290a472afde76.tar.gz
trackermap-server-f94951e7e78956b2bbd438665ff290a472afde76.tar.bz2
trackermap-server-f94951e7e78956b2bbd438665ff290a472afde76.zip
Migrate more boolean keys
Diffstat (limited to 'src/main/java/org/traccar/web')
-rw-r--r--src/main/java/org/traccar/web/WebServer.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/web/WebServer.java b/src/main/java/org/traccar/web/WebServer.java
index 4ae4d24ee..ba4dbff3c 100644
--- a/src/main/java/org/traccar/web/WebServer.java
+++ b/src/main/java/org/traccar/web/WebServer.java
@@ -82,7 +82,7 @@ public class WebServer {
initApi(config, servletHandler);
initSessionConfig(config, servletHandler);
- if (config.getBoolean("web.console")) {
+ if (config.getBoolean(Keys.WEB_CONSOLE)) {
servletHandler.addServlet(new ServletHolder(new ConsoleServlet()), "/console/*");
}
@@ -135,7 +135,7 @@ public class WebServer {
private void initWebApp(Config config, ServletContextHandler servletHandler) {
ServletHolder servletHolder = new ServletHolder(DefaultServlet.class);
servletHolder.setInitParameter("resourceBase", new File(config.getString("web.path")).getAbsolutePath());
- if (config.getBoolean("web.debug")) {
+ if (config.getBoolean(Keys.WEB_DEBUG)) {
servletHandler.setWelcomeFiles(new String[] {"debug.html", "index.html"});
} else {
String cache = config.getString("web.cacheControl");