summaryrefslogtreecommitdiff
path: root/cli/user-info.php
diff options
context:
space:
mode:
Diffstat (limited to 'cli/user-info.php')
-rwxr-xr-xcli/user-info.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/user-info.php b/cli/user-info.php
index 18a415217..043bebf7c 100755
--- a/cli/user-info.php
+++ b/cli/user-info.php
@@ -16,9 +16,10 @@ foreach ($users as $username) {
$username = cliInitUser($username);
echo $username === FreshRSS_Context::$system_conf->default_user ? '*' : ' ', "\t";
- $catDAO = new FreshRSS_CategoryDAO();
+ $catDAO = FreshRSS_Factory::createCategoryDao();
$feedDAO = FreshRSS_Factory::createFeedDao($username);
$entryDAO = FreshRSS_Factory::createEntryDao($username);
+ $tagDAO = FreshRSS_Factory::createTagDao($username);
$databaseDAO = FreshRSS_Factory::createDatabaseDAO($username);
$nbEntries = $entryDAO->countUnreadRead();
@@ -34,6 +35,7 @@ foreach ($users as $username) {
$nbEntries['read'], " reads\t",
$nbEntries['unread'], " unreads\t",
$nbFavorites['all'], " favourites\t",
+ $tagDAO->count(), " tags\t",
"\n";
} else {
echo
@@ -45,6 +47,7 @@ foreach ($users as $username) {
$nbEntries['read'], "\t",
$nbEntries['unread'], "\t",
$nbFavorites['all'], "\t",
+ $tagDAO->count(), "\t",
"\n";
}
}