mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
@@ -2,6 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Web.Mvc;
|
||||
using Orchard.ContentManagement.MetaData;
|
||||
using Orchard.ImportExport.Services;
|
||||
@@ -77,7 +78,7 @@ namespace Orchard.ImportExport.Controllers {
|
||||
var exportFilePath = _importExportService.Export(contentTypesToExport, exportOptions);
|
||||
Services.Notifier.Information(T("Your export file has been created at {0}", exportFilePath));
|
||||
|
||||
return RedirectToAction("Export");
|
||||
return File(exportFilePath, "text/xml", "export.xml");
|
||||
}
|
||||
catch (Exception exception) {
|
||||
Services.Notifier.Error(T("Export failed: {0}", exception.Message));
|
||||
|
||||
Reference in New Issue
Block a user