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:
loudej 2010-01-29 00:20:14 +00:00
parent f96c27c1d8
commit a737e9bda1

View File

@ -60,7 +60,8 @@ namespace Orchard.Core.Themes.Controllers {
try {
if (!_authorizer.Authorize(Permissions.ApplyTheme, T("Couldn't preview the current theme")))
return new HttpUnauthorizedResult();
_previewTheme.SetPreviewTheme(null);
_previewTheme.SetPreviewTheme(null);
_themeService.SetSiteTheme(themeName);
return Redirect(returnUrl ?? "~/");
}
catch (Exception exception) {