Migrating Settings

--HG--
branch : theming
This commit is contained in:
Sebastien Ros
2010-09-10 15:47:52 -07:00
parent 541c6d1e65
commit adeda2e278
6 changed files with 59 additions and 60 deletions

View File

@@ -37,10 +37,10 @@ namespace Orchard.Core.Settings.Controllers {
var site = _siteService.GetSiteSettings().As<SiteSettingsPart>();
var model = new SettingsIndexViewModel {
Site = Services.ContentManager.BuildEditorModel(site),
Site = site,
SiteCultures = _cultureManager.ListCultures()
};
return View(Shape.Model(model));
return View(model);
}
[HttpPost, ActionName("Index")]
@@ -53,7 +53,7 @@ namespace Orchard.Core.Settings.Controllers {
if (!ModelState.IsValid) {
Services.TransactionManager.Cancel();
return View(Shape.Model(model));
return View(model);
}
Services.Notifier.Information(T("Settings updated"));
@@ -73,7 +73,7 @@ namespace Orchard.Core.Settings.Controllers {
.Select(ci => ci.Name)
.Where(s => !model.SiteCultures.Contains(s));
return View(Shape.Model(model));
return View(model);
}
[HttpPost]