Skip to content
This repository was archived by the owner on Apr 7, 2024. It is now read-only.

Commit bbc955e

Browse files
committed
changed to hasFlag logic as we now can have multiple flags
1 parent 6d40dcd commit bbc955e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Services/StaticWebService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ public string EnsureResource(SiteConfigurationElement siteConfiguration, string
648648
return null;
649649
}
650650

651-
if (ignoreHtmlDependencies && callDepth != 0 && resourceInfo.TypeConfiguration.DenendencyLookup == ResourceDependencyLookup.Html)
651+
if (ignoreHtmlDependencies && callDepth != 0 && resourceInfo.TypeConfiguration.DenendencyLookup.HasFlag(ResourceDependencyLookup.Html))
652652
{
653653
return null;
654654
}
@@ -665,7 +665,7 @@ public string EnsureResource(SiteConfigurationElement siteConfiguration, string
665665
currentPageResourcePairs.Add(resourceUrl, newResourceUrl);
666666
}
667667

668-
if (resourceInfo.TypeConfiguration.DenendencyLookup != ResourceDependencyLookup.None)
668+
if (!resourceInfo.TypeConfiguration.DenendencyLookup.HasFlag(ResourceDependencyLookup.None))
669669
{
670670
var content = Encoding.UTF8.GetString(resourceInfo.Data);
671671
content = EnsureDependencies(resourceUrl, content, siteConfiguration, useTemporaryAttribute, ignoreHtmlDependencies, resourceInfo.TypeConfiguration, currentPageResourcePairs, replaceResourcePairs, callDepth);

0 commit comments

Comments
 (0)