Fix typo on error message on widgets admin.

--HG--
branch : dev
This commit is contained in:
Andre Rodrigues
2010-10-14 16:39:19 -07:00
parent af3a348770
commit 8d26796000

View File

@@ -44,9 +44,10 @@ namespace Orchard.Widgets.Controllers {
layers.First() :
layers.FirstOrDefault(layer => layer.Id == id);
if (currentLayer == null) {
if (currentLayer == null &&
id != null) {
// Incorrect layer id passed
Services.Notifier.Error(T("Layer not found: {1}", id));
Services.Notifier.Error(T("Layer not found: {0}", id));
return RedirectToAction("Index");
}
@@ -254,7 +255,7 @@ namespace Orchard.Widgets.Controllers {
try {
widgetPart = _widgetsService.GetWidget(id);
if (widgetPart == null) {
Services.Notifier.Error(T("Widget not found: {1}", id));
Services.Notifier.Error(T("Widget not found: {0}", id));
return RedirectToAction("Index");
}