Commit ba70b534 authored by Dries's avatar Dries

- Removed the offline users feature.
parent 26cb5c1d
......@@ -526,7 +526,6 @@ function user_block($op = 'list', $delta = 0) {
// Perform database queries to count all users
$all_users = db_fetch_object(db_query('SELECT COUNT(uid) AS count FROM {users} WHERE uid != 0 AND status != 0'));
$offline_users = $all_users->count - $total_users;
// Format the output with proper grammar.
if ($total_users == 1 && $guests->count == 1) {
......@@ -536,14 +535,6 @@ function user_block($op = 'list', $delta = 0) {
$output = t('There are currently %members and %visitors online.', array('%members' => format_plural($total_users, '1 user', '%count users'), '%visitors' => format_plural($guests->count, '1 guest', '%count guests')));
}
// Describe how many users are offline
if ($offline_users == 1) {
$output .= ' '.t('1 user is offline.');
}
else {
$output .= ' '.t('%a are offline.', array('%a' => format_plural($offline_users, '1 user', '%count users')));
}
// Display a list of currently online users.
$max_users = variable_get('user_block_max_list_count', 10);
if ($max_users) {
......
......@@ -526,7 +526,6 @@ function user_block($op = 'list', $delta = 0) {
// Perform database queries to count all users
$all_users = db_fetch_object(db_query('SELECT COUNT(uid) AS count FROM {users} WHERE uid != 0 AND status != 0'));
$offline_users = $all_users->count - $total_users;
// Format the output with proper grammar.
if ($total_users == 1 && $guests->count == 1) {
......@@ -536,14 +535,6 @@ function user_block($op = 'list', $delta = 0) {
$output = t('There are currently %members and %visitors online.', array('%members' => format_plural($total_users, '1 user', '%count users'), '%visitors' => format_plural($guests->count, '1 guest', '%count guests')));
}
// Describe how many users are offline
if ($offline_users == 1) {
$output .= ' '.t('1 user is offline.');
}
else {
$output .= ' '.t('%a are offline.', array('%a' => format_plural($offline_users, '1 user', '%count users')));
}
// Display a list of currently online users.
$max_users = variable_get('user_block_max_list_count', 10);
if ($max_users) {
......
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