aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/Context.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-02-03 08:07:02 +1300
committerGitHub <noreply@github.com>2018-02-03 08:07:02 +1300
commitc8f3ddf412dc98b9430f697a0e02d24a3f15627d (patch)
tree185d255ed2b6d1069c48cc39f5ef0545e0574626 /src/org/traccar/Context.java
parentc70fa517c467472e96c1f06729da338ac7a39c9e (diff)
parentbec12783f99849131f80175731d00b3f7929e661 (diff)
downloadtrackermap-server-c8f3ddf412dc98b9430f697a0e02d24a3f15627d.tar.gz
trackermap-server-c8f3ddf412dc98b9430f697a0e02d24a3f15627d.tar.bz2
trackermap-server-c8f3ddf412dc98b9430f697a0e02d24a3f15627d.zip
Merge pull request #3752 from Abyss777/switch_media
Add switch to enable media web access
Diffstat (limited to 'src/org/traccar/Context.java')
-rw-r--r--src/org/traccar/Context.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java
index 3681cc2cc..09e3c619b 100644
--- a/src/org/traccar/Context.java
+++ b/src/org/traccar/Context.java
@@ -337,9 +337,7 @@ public final class Context {
ldapProvider = new LdapProvider(config);
}
- if (config.hasKey("media.path")) {
- mediaManager = new MediaManager(config);
- }
+ mediaManager = new MediaManager(config.getString("media.path"));
if (dataManager != null) {
usersManager = new UsersManager(dataManager);