Skip to content

Commit a70a040

Browse files
committed
Trying with a cleanup.
1 parent 1167060 commit a70a040

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

eFormAPI/Installation/CustomActions/CustomAction.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -656,23 +656,23 @@ private static void AddImageHandlers(string siteName)
656656

657657
ConfigurationSection handlersSection = config.GetSection("system.webServer/handlers");
658658
ConfigurationElementCollection handlersCollection = handlersSection.GetCollection();
659-
bool pngHandlerMissing = true;
660-
bool jpgHandlerMissing = true;
661-
bool jpegHandlerMissing = true;
662-
ConfigurationElement toRemoveCe = null;
659+
//bool pngHandlerMissing = true;
660+
//bool jpgHandlerMissing = true;
661+
//bool jpegHandlerMissing = true;
662+
//ConfigurationElement toRemoveCe = null;
663663

664664
List<ConfigurationElement> toRemoveElements = new List<ConfigurationElement>();
665665

666-
//foreach (ConfigurationElement ce in handlersCollection)
667-
//{
668-
// toRemoveElements.Add(ce);
669-
//}
666+
foreach (ConfigurationElement ce in handlersCollection)
667+
{
668+
toRemoveElements.Add(ce);
669+
}
670670

671-
//foreach (ConfigurationElement ce in toRemoveElements)
672-
//{
673-
// handlersCollection.Remove(ce);
674-
//}
675-
handlersCollection.Clear();
671+
foreach (ConfigurationElement ce in toRemoveElements)
672+
{
673+
handlersCollection.Remove(ce);
674+
}
675+
//handlersCollection.Clear();
676676

677677
try
678678
{

0 commit comments

Comments
 (0)