Skip to content
Snippets Groups Projects
Commit bac3c8c1 authored by Kevin Paxman's avatar Kevin Paxman
Browse files

ISTWCMS-4208: coding standards

parent b0bbf69e
No related branches found
No related tags found
1 merge request!19Feature/istwcms 4208 ebremner unpublishing
...@@ -90,7 +90,7 @@ class UwContentModerationForm extends ConfirmFormBase { ...@@ -90,7 +90,7 @@ class UwContentModerationForm extends ConfirmFormBase {
$form['description']['#markup'] = $this->t('Are you sure that you want to unpublish the live revision of this content?'); $form['description']['#markup'] = $this->t('Are you sure that you want to unpublish the live revision of this content?');
} }
else { else {
$form['description']['#markup'] = $this->t('Are you sure that you want to publish the live revision of this content?'); $form['description']['#markup'] = $this->t('Are you sure that you want to publish the current revision of this content?');
} }
return $form; return $form;
...@@ -162,8 +162,8 @@ class UwContentModerationForm extends ConfirmFormBase { ...@@ -162,8 +162,8 @@ class UwContentModerationForm extends ConfirmFormBase {
// Adding the redirect back to the node. // Adding the redirect back to the node.
$form_state->setRedirectUrl($url); $form_state->setRedirectUrl($url);
// If the saved status is SAVED_UPDATED (2), means that we successfully changed // If the saved status is SAVED_UPDATED (2), means that we successfully
// the moderation state so set the message appropriately. // changed the moderation state so set the message appropriately.
if ($saved_status == SAVED_UPDATED) { if ($saved_status == SAVED_UPDATED) {
if ($this->status) { if ($this->status) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment