Will not disable the admin theme.
This commit is contained in:
Gustavo Tandeciarz
2015-08-25 12:54:26 -04:00
parent e0e600a6ce
commit 47d3d2b738

View File

@@ -1,7 +1,8 @@
using System.Web;
using System.Web;
using JetBrains.Annotations;
using Orchard.ContentManagement.Drivers;
using Orchard.Themes.Models;
using Orchard.UI.Admin;
namespace Orchard.Themes.Drivers {
[UsedImplicitly]
@@ -13,6 +14,9 @@ namespace Orchard.Themes.Drivers {
}
protected override DriverResult Display(DisableThemePart part, string displayType, dynamic shapeHelper) {
if (AdminFilter.IsApplied(_httpContext.Request.RequestContext)) {
return null;
}
return ContentShape("Parts_DisableTheme", () => {
ThemeFilter.Disable(_httpContext.Request.RequestContext);
return null;
@@ -20,4 +24,4 @@ namespace Orchard.Themes.Drivers {
}
}
}
}