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

4.4.x
Dries Buytaert 2003-11-28 20:58:20 +00:00
parent ece42b6c93
commit acf572473b
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);