mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-26 03:23:19 +08:00
Fixes #7294
This commit is contained in:
committed by
Sébastien Ros
parent
13979fd1da
commit
7ec1765258
@@ -413,8 +413,8 @@ namespace Orchard.Core.Contents.Controllers {
|
|||||||
if (contentItem != null) {
|
if (contentItem != null) {
|
||||||
_contentManager.Remove(contentItem);
|
_contentManager.Remove(contentItem);
|
||||||
Services.Notifier.Success(string.IsNullOrWhiteSpace(contentItem.TypeDefinition.DisplayName)
|
Services.Notifier.Success(string.IsNullOrWhiteSpace(contentItem.TypeDefinition.DisplayName)
|
||||||
? T("That content has been removed.")
|
? T("The content has been removed.")
|
||||||
: T("That {0} has been removed.", contentItem.TypeDefinition.DisplayName));
|
: T("The {0} has been removed.", contentItem.TypeDefinition.DisplayName));
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.RedirectLocal(returnUrl, () => RedirectToAction("List"));
|
return this.RedirectLocal(returnUrl, () => RedirectToAction("List"));
|
||||||
@@ -431,7 +431,7 @@ namespace Orchard.Core.Contents.Controllers {
|
|||||||
|
|
||||||
_contentManager.Publish(contentItem);
|
_contentManager.Publish(contentItem);
|
||||||
|
|
||||||
Services.Notifier.Success(string.IsNullOrWhiteSpace(contentItem.TypeDefinition.DisplayName) ? T("That content has been published.") : T("That {0} has been published.", contentItem.TypeDefinition.DisplayName));
|
Services.Notifier.Success(string.IsNullOrWhiteSpace(contentItem.TypeDefinition.DisplayName) ? T("The content has been published.") : T("The {0} has been published.", contentItem.TypeDefinition.DisplayName));
|
||||||
|
|
||||||
return this.RedirectLocal(returnUrl, () => RedirectToAction("List"));
|
return this.RedirectLocal(returnUrl, () => RedirectToAction("List"));
|
||||||
}
|
}
|
||||||
@@ -447,7 +447,7 @@ namespace Orchard.Core.Contents.Controllers {
|
|||||||
|
|
||||||
_contentManager.Unpublish(contentItem);
|
_contentManager.Unpublish(contentItem);
|
||||||
|
|
||||||
Services.Notifier.Success(string.IsNullOrWhiteSpace(contentItem.TypeDefinition.DisplayName) ? T("That content has been unpublished.") : T("That {0} has been unpublished.", contentItem.TypeDefinition.DisplayName));
|
Services.Notifier.Success(string.IsNullOrWhiteSpace(contentItem.TypeDefinition.DisplayName) ? T("The content has been unpublished.") : T("The {0} has been unpublished.", contentItem.TypeDefinition.DisplayName));
|
||||||
|
|
||||||
return this.RedirectLocal(returnUrl, () => RedirectToAction("List"));
|
return this.RedirectLocal(returnUrl, () => RedirectToAction("List"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user