Fixing #17431: Activate "The Theme Machine" cause all the theme disappear [4457 (fa3be325b584)]

--HG--
branch : 1.x
This commit is contained in:
Suha Can
2011-03-31 15:32:26 -07:00
parent bd100ff27c
commit e7fa5438c1

View File

@@ -93,11 +93,11 @@ namespace Orchard.Themes.Commands {
if (!_shellDescriptor.Features.Any(sf => sf.Name == theme.Id)) {
Context.Output.WriteLine(T("Enabling theme \"{0}\"...", themeName));
_themeService.EnableThemeFeatures(themeName);
_themeService.EnableThemeFeatures(theme.Id);
}
Context.Output.WriteLine(T("Activating theme \"{0}\"...", themeName));
_siteThemeService.SetSiteTheme(themeName);
_siteThemeService.SetSiteTheme(theme.Id);
Context.Output.WriteLine(T("Theme \"{0}\" activated", themeName));
}