#18318: Fixing culture specific scripts

Work Item: 18318

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2012-01-04 17:49:53 -08:00
parent 0c6b5df8e8
commit 594019e0f7
@@ -192,7 +192,7 @@ namespace Orchard.UI.Resources {
if (!String.IsNullOrEmpty(settings.Culture)) {
string nearestCulture = FindNearestCulture(settings.Culture);
if (!String.IsNullOrEmpty(nearestCulture)) {
url = Path.ChangeExtension(url, nearestCulture + "." + Path.GetExtension(url));
url = Path.ChangeExtension(url, nearestCulture + Path.GetExtension(url));
}
}
if (!Uri.IsWellFormedUriString(url, UriKind.Absolute) && !VirtualPathUtility.IsAbsolute(url) && !VirtualPathUtility.IsAppRelative(url) && !String.IsNullOrEmpty(BasePath)) {