mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-03 03:58:13 +08:00
#18310: Fixing case sensitiy for feature names
Work Item: 18310 --HG-- branch : 1.x
This commit is contained in:
@@ -246,7 +246,7 @@ namespace Orchard.Environment.Extensions.Folders {
|
|||||||
|
|
||||||
string[] featureDeclaration = line.Split(new[] { ":" }, StringSplitOptions.RemoveEmptyEntries);
|
string[] featureDeclaration = line.Split(new[] { ":" }, StringSplitOptions.RemoveEmptyEntries);
|
||||||
string featureDescriptorId = featureDeclaration[0].Trim();
|
string featureDescriptorId = featureDeclaration[0].Trim();
|
||||||
if (featureDescriptorId == extensionDescriptor.Id) {
|
if (String.Equals(featureDescriptorId, extensionDescriptor.Id, StringComparison.OrdinalIgnoreCase)) {
|
||||||
featureDescriptor = defaultFeature;
|
featureDescriptor = defaultFeature;
|
||||||
featureDescriptor.Name = extensionDescriptor.Name;
|
featureDescriptor.Name = extensionDescriptor.Name;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user