mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +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
@ -60,7 +60,8 @@ namespace Orchard.Core.Themes.Controllers {
|
|||||||
try {
|
try {
|
||||||
if (!_authorizer.Authorize(Permissions.ApplyTheme, T("Couldn't preview the current theme")))
|
if (!_authorizer.Authorize(Permissions.ApplyTheme, T("Couldn't preview the current theme")))
|
||||||
return new HttpUnauthorizedResult();
|
return new HttpUnauthorizedResult();
|
||||||
_previewTheme.SetPreviewTheme(null);
|
_previewTheme.SetPreviewTheme(null);
|
||||||
|
_themeService.SetSiteTheme(themeName);
|
||||||
return Redirect(returnUrl ?? "~/");
|
return Redirect(returnUrl ?? "~/");
|
||||||
}
|
}
|
||||||
catch (Exception exception) {
|
catch (Exception exception) {
|
||||||
|
Loading…
Reference in New Issue
Block a user