瀏覽代碼

Make use of WebPath

Joshua Boniface 6 年之前
父節點
當前提交
25deca9579
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      Emby.Server.Implementations/ApplicationHost.cs
  2. 1 1
      MediaBrowser.WebDashboard/Api/DashboardService.cs

+ 1 - 1
Emby.Server.Implementations/ApplicationHost.cs

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

+ 1 - 1
MediaBrowser.WebDashboard/Api/DashboardService.cs

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