From 8429eb21629c67900f232d3117f2872061da30e6 Mon Sep 17 00:00:00 2001 From: methodus Date: Mon, 22 Oct 2012 17:25:37 +0200 Subject: Fixed issue, that the database file is stored in the directory where the VDR is started, primarily root directory. --- server/webserver.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'server') 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; } -- cgit v1.2.3