- Fixed broken usernames in 'Who's new' block.
parent
ece42b6c93
commit
acf572473b
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue