Преглед изворни кода

use Path.DirectorySeparatorChar

Luke Pulverenti пре 11 година
родитељ
комит
f8b042b87d
1 измењених фајлова са 1 додато и 5 уклоњено
  1. 1 5
      MediaBrowser.WebDashboard/Api/DashboardService.cs

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

@@ -161,11 +161,7 @@ namespace MediaBrowser.WebDashboard.Api
         /// <returns>System.String.</returns>
         private string GetDashboardResourcePath(string virtualPath)
         {
-			#if __MonoCS__
-			return Path.Combine(DashboardUIPath, virtualPath);
-			#else
-			return Path.Combine(DashboardUIPath, virtualPath.Replace('/', '\\'));
-			#endif
+            return Path.Combine(DashboardUIPath, virtualPath.Replace('/', Path.DirectorySeparatorChar));
         }
 
         /// <summary>