From 604dc0accf23eaa359d77271ac094afe19b050b6 Mon Sep 17 00:00:00 2001 From: Loui Chang Date: Thu, 2 Oct 2008 14:56:49 -0400 Subject: [PATCH] Show developer-TUs their total community packages. Thanks to Hugo Doria for the original patch. Signed-off-by: Loui Chang --- web/lib/stats.inc | 2 +- web/template/stats/user_table.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/lib/stats.inc b/web/lib/stats.inc index e659210..6fbc033 100644 --- a/web/lib/stats.inc +++ b/web/lib/stats.inc @@ -29,7 +29,7 @@ function user_table($user, $dbh) # If the user is a TU calculate the number of the packages $atype = account_from_sid($_COOKIE["AURSID"]); - if ($atype == 'Trusted User') { + if (($atype == 'Trusted User') || ($atype == 'Developer')) { $result = db_query(sprintf($base_q, 'community'), $dbh); $row = mysql_fetch_row($result); $maintainer_community_count = $row[0]; diff --git a/web/template/stats/user_table.php b/web/template/stats/user_table.php index b844662..ec71999 100644 --- a/web/template/stats/user_table.php +++ b/web/template/stats/user_table.php @@ -13,7 +13,7 @@ - + -- 1.6.0.2