mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-07-15 14:46:12 +08:00
Apply from the preview form needs to set site theme.
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4046082
This commit is contained in:
parent
f96c27c1d8
commit
a737e9bda1
@ -61,6 +61,7 @@ namespace Orchard.Core.Themes.Controllers {
|
||||
if (!_authorizer.Authorize(Permissions.ApplyTheme, T("Couldn't preview the current theme")))
|
||||
return new HttpUnauthorizedResult();
|
||||
_previewTheme.SetPreviewTheme(null);
|
||||
_themeService.SetSiteTheme(themeName);
|
||||
return Redirect(returnUrl ?? "~/");
|
||||
}
|
||||
catch (Exception exception) {
|
||||
|
Loading…
Reference in New Issue
Block a user