Optimizing ThemeFilter with Cache enabled

--HG--
branch : NH3
This commit is contained in:
Sebastien Ros
2012-07-13 10:45:13 -07:00
parent 5b7503fe13
commit a2d45df199

View File

@@ -24,6 +24,10 @@ namespace Orchard.Themes.Preview {
}
public void OnResultExecuting(ResultExecutingContext filterContext) {
if(filterContext.Result as ViewResult == null) {
return;
}
var previewThemeName = _previewTheme.GetPreviewTheme();
if (string.IsNullOrEmpty(previewThemeName))
return;