Browse Source

use Path.DirectorySeparatorChar

Luke Pulverenti 11 years ago
parent
commit
f8b042b87d
1 changed files with 1 additions and 5 deletions
  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>