diff options
author | Abyss777 <abyss@fox5.ru> | 2018-02-02 16:38:55 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2018-02-02 16:38:55 +0500 |
commit | bec12783f99849131f80175731d00b3f7929e661 (patch) | |
tree | 185d255ed2b6d1069c48cc39f5ef0545e0574626 /src/org/traccar/Context.java | |
parent | af49fada37f21df9ed5ceb67504c45b714ec24d4 (diff) | |
download | trackermap-server-bec12783f99849131f80175731d00b3f7929e661.tar.gz trackermap-server-bec12783f99849131f80175731d00b3f7929e661.tar.bz2 trackermap-server-bec12783f99849131f80175731d00b3f7929e661.zip |
Always initialize MediaManager
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); |