diff options
author | methodus <methodus@web.de> | 2012-10-22 17:25:37 +0200 |
---|---|---|
committer | methodus <methodus@web.de> | 2012-10-22 17:25:37 +0200 |
commit | 8429eb21629c67900f232d3117f2872061da30e6 (patch) | |
tree | 06afad7b26cc638e22b7357a84704ed25c1541fd /server | |
parent | 418f4f3ba61c5b148bf0a591071a563b5de2fc19 (diff) | |
download | vdr-plugin-upnp-8429eb21629c67900f232d3117f2872061da30e6.tar.gz vdr-plugin-upnp-8429eb21629c67900f232d3117f2872061da30e6.tar.bz2 |
Fixed issue, that the database file is stored in the directory where the VDR is started, primarily root directory.
Diffstat (limited to 'server')
-rw-r--r-- | server/webserver.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/webserver.cpp b/server/webserver.cpp index 2066c7f..b4b0183 100644 --- a/server/webserver.cpp +++ b/server/webserver.cpp @@ -97,7 +97,11 @@ void cWebserver::SetWebserverRootDir(std::string rootDirectory){ if(mWebserverThread.Active()) return; if(rootDirectory.empty()) +#if APIVERSNUM > 10729 + mWebserverRootDir = std::string(cPluginUpnp::ResourceDirectory(PLUGIN_NAME_I18N)) + "/httpdocs/"; +#else mWebserverRootDir = std::string(cPluginUpnp::ConfigDirectory(PLUGIN_NAME_I18N)) + "/httpdocs/"; +#endif else mWebserverRootDir = rootDirectory; } |