Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
acf57247
Commit
acf57247
authored
Nov 28, 2003
by
Dries
Browse files
- Fixed broken usernames in 'Who's new' block.
parent
ece42b6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/user.module
View file @
acf57247
...
...
@@ -372,7 +372,7 @@ function user_block($op = "list", $delta = 0) {
if
(
user_access
(
"access content"
))
{
$result
=
db_query_range
(
"SELECT uid, name FROM
{
users
}
WHERE status != '0' ORDER BY uid DESC"
,
0
,
5
);
while
(
$account
=
db_fetch_object
(
$result
))
{
$items
[]
=
l
((
strlen
(
$account
->
name
)
>
15
?
substr
(
$account
->
name
,
0
,
15
)
.
'...'
:
$account
->
name
),
"user/view/
$account
->uid
"
);
$items
[]
=
format_name
(
$account
);
}
$output
=
theme
(
"user_list"
,
$items
);
...
...
modules/user/user.module
View file @
acf57247
...
...
@@ -372,7 +372,7 @@ function user_block($op = "list", $delta = 0) {
if
(
user_access
(
"access content"
))
{
$result
=
db_query_range
(
"SELECT uid, name FROM
{
users
}
WHERE status != '0' ORDER BY uid DESC"
,
0
,
5
);
while
(
$account
=
db_fetch_object
(
$result
))
{
$items
[]
=
l
((
strlen
(
$account
->
name
)
>
15
?
substr
(
$account
->
name
,
0
,
15
)
.
'...'
:
$account
->
name
),
"user/view/
$account
->uid
"
);
$items
[]
=
format_name
(
$account
);
}
$output
=
theme
(
"user_list"
,
$items
);
...
...
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