Use objectGetEntriesCount() in more places
This commit is contained in:
committed by
WineHQ
parent
9a953f7ce8
commit
6c55180786
@@ -205,15 +205,6 @@ function make_maintainer_rating_list($varname, $cvalue)
|
||||
echo "</select>\n";
|
||||
}
|
||||
|
||||
/* get the total number of vendors from the vendor table */
|
||||
function getVendorCount()
|
||||
{
|
||||
$sQuery = "SELECT count(*) as vendors FROM vendor";
|
||||
$hResult = query_parameters($sQuery);
|
||||
$oRow = mysql_fetch_object($hResult);
|
||||
return $oRow->vendors;
|
||||
}
|
||||
|
||||
/* Get the number of users in the database */
|
||||
function getNumberOfComments()
|
||||
{
|
||||
@@ -222,22 +213,6 @@ function getNumberOfComments()
|
||||
return $oRow->num_comments;
|
||||
}
|
||||
|
||||
/* Get the number of versions in the database */
|
||||
function getNumberOfVersions()
|
||||
{
|
||||
$hResult = query_parameters("SELECT count(versionId) as num_versions FROM appVersion WHERE versionName != 'NONAME';");
|
||||
$oRow = mysql_fetch_object($hResult);
|
||||
return $oRow->num_versions;
|
||||
}
|
||||
|
||||
/* Get the number of app familes in the database */
|
||||
function getNumberOfAppFamilies()
|
||||
{
|
||||
$hResult = query_parameters("SELECT count(*) as num_appfamilies FROM appFamily;");
|
||||
$oRow = mysql_fetch_object($hResult);
|
||||
return $oRow->num_appfamilies;
|
||||
}
|
||||
|
||||
/* Get the number of queued bug links in the database */
|
||||
function getNumberOfQueuedBugLinks()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user