mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 10:54:50 +08:00
Fixing warnings
--HG-- branch : perf
This commit is contained in:
@@ -11,15 +11,10 @@ using Orchard.Modules.ViewModels;
|
||||
using Orchard.UI.Notify;
|
||||
|
||||
namespace Orchard.Modules.Services {
|
||||
[Obsolete]
|
||||
public interface IModuleService : IDependency {
|
||||
[Obsolete]
|
||||
void EnableFeatures(IEnumerable<string> featureNames);
|
||||
[Obsolete]
|
||||
void EnableFeatures(IEnumerable<string> featureNames, bool force);
|
||||
[Obsolete]
|
||||
void DisableFeatures(IEnumerable<string> featureNames);
|
||||
[Obsolete]
|
||||
void DisableFeatures(IEnumerable<string> featureNames, bool force);
|
||||
}
|
||||
|
||||
|
@@ -102,22 +102,11 @@ namespace Orchard.Setup {
|
||||
|
||||
[UsedImplicitly]
|
||||
class SafeModeThemeService : IThemeManager {
|
||||
class SafeModeTheme : FeatureDescriptor {
|
||||
public ContentItem ContentItem { get; set; }
|
||||
public bool Enabled { get; set; }
|
||||
public string ThemeName { get; set; }
|
||||
public string DisplayName { get; set; }
|
||||
public string Tags { get; set; }
|
||||
public string Zones { get; set; }
|
||||
public string BaseTheme { get; set; }
|
||||
}
|
||||
|
||||
private readonly ExtensionDescriptor _theme = new ExtensionDescriptor {
|
||||
Name = "SafeMode",
|
||||
DisplayName = "SafeMode",
|
||||
};
|
||||
|
||||
public ExtensionDescriptor GetThemeByName(string themeName) { return _theme; }
|
||||
public ExtensionDescriptor GetRequestTheme(RequestContext requestContext) { return _theme; }
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user