Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_cfg_common
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_cfg_common
Commits
6cfdd7f8
Commit
6cfdd7f8
authored
4 years ago
by
Liam Morland
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-4208: Use StringTranslationTrait
Fixes issue introduced in
1a03da1e
.
parent
36001057
No related branches found
No related tags found
1 merge request
!37
ISTWCMS-4208: Use StringTranslationTrait
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Form/UwContentModerationForm.php
+2
-2
2 additions, 2 deletions
src/Form/UwContentModerationForm.php
with
2 additions
and
2 deletions
src/Form/UwContentModerationForm.php
+
2
−
2
View file @
6cfdd7f8
...
@@ -203,12 +203,12 @@ class UwContentModerationForm extends ConfirmFormBase {
...
@@ -203,12 +203,12 @@ class UwContentModerationForm extends ConfirmFormBase {
if
(
$this
->
status
)
{
if
(
$this
->
status
)
{
// Return the question to see if they want to publish the node.
// Return the question to see if they want to publish the node.
return
t
(
'Unpublish %node_title?'
,
[
'%node_title'
=>
$node
->
getTitle
()]);
return
$this
->
t
(
'Unpublish %node_title?'
,
[
'%node_title'
=>
$node
->
getTitle
()]);
}
}
else
{
else
{
// Return the question to see if they want to publish the node.
// Return the question to see if they want to publish the node.
return
t
(
'Publish %node_title?'
,
[
'%node_title'
=>
$node
->
getTitle
()]);
return
$this
->
t
(
'Publish %node_title?'
,
[
'%node_title'
=>
$node
->
getTitle
()]);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment