From a6127c1b07f067af5f571058295ea4e4427146a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Sat, 21 Apr 2007 17:06:50 +0000 Subject: [PATCH] Rename user::count() to objectGetEntriesCount() for consistency with the other generic object methods --- appdbStats.php | 5 +++-- include/user.php | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/appdbStats.php b/appdbStats.php index 18f9766..47d7b12 100644 --- a/appdbStats.php +++ b/appdbStats.php @@ -14,7 +14,7 @@ echo "\n\n"; /* Display the number of users */ echo "\n"; echo " \n"; -echo " \n"; +echo " \n"; echo "\n\n"; /* Display the active users in the last 30 days */ @@ -38,7 +38,8 @@ echo "\n\n"; /* Display the inactive users */ echo "\n"; echo " \n"; -echo " \n"; +echo " \n"; echo "\n\n"; /* Display the users who were warned and pending deletion */ diff --git a/include/user.php b/include/user.php index 91050db..43db24e 100644 --- a/include/user.php +++ b/include/user.php @@ -480,9 +480,10 @@ class User { } /** - * Get the number of users in the database + * Get the number of users in the database + * The parameters are only included for compatibility; we don't queue users */ - function count() + function objectGetEntriesCount($bQueued = null, $bRejected = null) { $hResult = query_parameters("SELECT count(*) as num_users FROM user_list;"); $oRow = mysql_fetch_object($hResult);
Users:".User::count()."".User::objectGetEntriesCount()."
Inactive users (not logged in since six months):".(User::count()-User::active_users_within_days(183))."".(User::objectGetEntriesCount()- + User::active_users_within_days(183))."