Make use of WebPath

pull/1092/head
Joshua Boniface 6 years ago
parent 93d15cd969
commit 25deca9579

@ -621,7 +621,7 @@ namespace Emby.Server.Implementations
string contentRoot = ServerConfigurationManager.Configuration.DashboardSourcePath; string contentRoot = ServerConfigurationManager.Configuration.DashboardSourcePath;
if (string.IsNullOrEmpty(contentRoot)) if (string.IsNullOrEmpty(contentRoot))
{ {
contentRoot = Path.Combine(ServerConfigurationManager.ApplicationPaths.ApplicationResourcesPath, "jellyfin-web", "src"); contentRoot = Path.Combine(ServerConfigurationManager.ApplicationPaths,WebPath, "src");
} }
var host = new WebHostBuilder() var host = new WebHostBuilder()

@ -149,7 +149,7 @@ namespace MediaBrowser.WebDashboard.Api
return _serverConfigurationManager.Configuration.DashboardSourcePath; return _serverConfigurationManager.Configuration.DashboardSourcePath;
} }
return Path.Combine(_serverConfigurationManager.ApplicationPaths.ApplicationResourcesPath, "jellyfin-web", "src"); return Path.Combine(_serverConfigurationManager.ApplicationPaths.WebPath, "src");
} }
} }

Loading…
Cancel
Save