use Path.DirectorySeparatorChar

pull/702/head
Luke Pulverenti 11 years ago
parent 54b20dcbb8
commit f8b042b87d

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

Loading…
Cancel
Save