Commit 443cc4ee authored by Dries's avatar Dries

- Fixed broken usernames in 'Who's new' block.

parent 5729a8c5
......@@ -464,7 +464,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("theme_user_list", $items);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment