mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
#18318: Fixing culture specific scripts
Work Item: 18318 --HG-- branch : 1.x
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user