Alexander Nicolaysen Sørnes : Fix AppDB stats page
Chris Morgan
cmorgan at winehq.org
Wed Jan 23 09:46:05 CST 2008
Module: appdb
Branch: master
Commit: 663894bed4ba8d66174de63b2cbdb7815902ddd5
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=663894bed4ba8d66174de63b2cbdb7815902ddd5
Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date: Wed Jan 23 15:17:33 2008 +0100
Fix AppDB stats page
---
appdbStats.php | 12 ++++++------
include/maintainer.php | 2 +-
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/appdbStats.php b/appdbStats.php
index d3dcef2..0915839 100644
--- a/appdbStats.php
+++ b/appdbStats.php
@@ -60,13 +60,13 @@ echo "</tr>\n\n";
/* Display the number of application familes */
echo "<tr class=color4>\n";
echo " <td>Application families:</td>\n";
-echo " <td>".application::objectGetEntriesCount(false, false)."</td>\n";
+echo " <td>".application::objectGetEntriesCount('accepted')."</td>\n";
echo "</tr>\n\n";
/* Display the number of versions */
echo "<tr class=color4>\n";
echo " <td>Versions:</td>\n";
-echo " <td>".version::objectGetEntriesCount(false, false)."</td>\n";
+echo " <td>".version::objectGetEntriesCount('accepted')."</td>\n";
echo "</tr>\n\n";
/* Display the number of application maintainers */
@@ -75,16 +75,16 @@ echo " <td>Application maintainers:</td>\n";
echo " <td>".Maintainer::getNumberOfMaintainers()."</td>\n";
echo "</tr>\n\n";
-/* Display the number of testing reports */
+/* Display the number of test reports */
echo "<tr class=color4>\n";
-echo " <td>Testing reports:</td>\n";
-echo " <td>".testData::objectGetEntriescount(false, false)."</td>\n";
+echo " <td>Test reports:</td>\n";
+echo " <td>".testData::objectGetEntriescount('accepted')."</td>\n";
echo "</tr>\n\n";
/* Display the number of images */
echo "<tr class=color4>\n";
echo " <td>Screenshots:</td>\n";
-echo " <td>".appData::objectGetEntriesCount("false", false, "screenshot")."</td>\n";
+echo " <td>".screenshot::objectGetEntriesCount('accepted')."</td>\n";
echo "</tr>\n\n";
echo "</table>\n\n";
diff --git a/include/maintainer.php b/include/maintainer.php
index b886d4a..3449b80 100644
--- a/include/maintainer.php
+++ b/include/maintainer.php
@@ -514,7 +514,7 @@ class maintainer
/* see how many unique maintainers we actually have */
function getNumberOfMaintainers()
{
- $hResult = query_parameters("SELECT DISTINCT userId FROM appMaintainers WHERE queued='false';");
+ $hResult = query_parameters("SELECT DISTINCT userId FROM appMaintainers WHERE state='accepted';");
return query_num_rows($hResult);
}
More information about the wine-cvs
mailing list