mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Added support for default configurations, enabling a full site export.
The command "export file" with no arguments will export everything.
This commit is contained in:
@@ -58,6 +58,11 @@ namespace Orchard.Modules.Recipes.Builders {
|
||||
ExportDisabledFeatures = context.ConfigurationElement.Attr<bool>("ExportDisabledFeatures");
|
||||
}
|
||||
|
||||
public override void ConfigureDefault() {
|
||||
ExportEnabledFeatures = true;
|
||||
ExportDisabledFeatures = false;
|
||||
}
|
||||
|
||||
public override void Build(BuildContext context) {
|
||||
if (!ExportEnabledFeatures && !ExportDisabledFeatures)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user