Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
private_message
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
private_message
Commits
6f8b1693
Commit
6f8b1693
authored
3 months ago
by
D Vargas
Committed by
Claudiu Cristea
3 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3475462
by dxvargas, claudiu.cristea: Function strpos() has the arguments swapped
parent
ee70308e
No related branches found
No related tags found
1 merge request
!120
Issue #3475462: Fix order of arguments in strpos() in hook_preprocess_container().
Pipeline
#342264
passed
3 months ago
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
private_message.module
+2
-2
2 additions, 2 deletions
private_message.module
with
2 additions
and
2 deletions
private_message.module
+
2
−
2
View file @
6f8b1693
...
...
@@ -636,11 +636,11 @@ function private_message_preprocess_field__private_message_thread__private_messa
*/
function
private_message_preprocess_container
(
&
$vars
)
{
if
(
!
empty
(
$vars
[
'element'
][
'#id'
]))
{
if
(
str
pos
(
'edit-members-wrapper'
,
$vars
[
'element'
][
'#id'
])
===
0
)
{
if
(
str
_starts_with
(
$vars
[
'element'
][
'#id'
],
'edit-members-wrapper'
)
)
{
// Add a custom class to the private message members widget container.
$vars
[
'attributes'
][
'class'
][]
=
'private_message_members_widget_default_wrapper'
;
}
elseif
(
str
pos
(
'edit-message-wrapper'
,
$vars
[
'element'
][
'#id'
])
===
0
)
{
elseif
(
str
_starts_with
(
$vars
[
'element'
][
'#id'
],
'edit-message-wrapper'
)
)
{
// Add a custom class to the private message members widget container.
$vars
[
'attributes'
][
'class'
][]
=
'private_message_message_widget_default_wrapper'
;
}
...
...
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