Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
9dd2ce28
Commit
9dd2ce28
authored
Sep 15, 2009
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#565792
by pwolanin, salvis: follow-up on theme_username refactoring.
parent
175bb6d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
includes/theme.inc
includes/theme.inc
+1
-2
No files found.
includes/theme.inc
View file @
9dd2ce28
...
...
@@ -1913,9 +1913,8 @@ function template_preprocess_username(&$variables) {
if
(
drupal_strlen
(
$variables
[
'object'
]
->
name
)
>
20
)
{
$variables
[
'object'
]
->
name
=
drupal_substr
(
$variables
[
'object'
]
->
name
,
0
,
15
)
.
'...'
;
}
// Make sure
these are
safe for use in the theme function.
// Make sure
name is
safe for use in the theme function.
$variables
[
'object'
]
->
name
=
check_plain
(
$variables
[
'object'
]
->
name
);
$variables
[
'object'
]
->
extra
=
check_plain
(
$variables
[
'object'
]
->
extra
);
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment