diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-02-03 08:07:02 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-03 08:07:02 +1300 |
commit | c8f3ddf412dc98b9430f697a0e02d24a3f15627d (patch) | |
tree | 185d255ed2b6d1069c48cc39f5ef0545e0574626 /src/org/traccar/Context.java | |
parent | c70fa517c467472e96c1f06729da338ac7a39c9e (diff) | |
parent | bec12783f99849131f80175731d00b3f7929e661 (diff) | |
download | trackermap-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.java | 4 |
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); |