mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixing #17431: Activate "The Theme Machine" cause all the theme disappear [4457 (fa3be325b584)]
--HG-- branch : 1.x
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user