diff --git a/include/sidebar_admin.php b/include/sidebar_admin.php
index 9b57e86..7b8138f 100644
--- a/include/sidebar_admin.php
+++ b/include/sidebar_admin.php
@@ -18,7 +18,7 @@ function global_admin_menu() {
$g->add("View Maintainer Queue (".getQueuedMaintainerCount().")", BASE."admin/adminMaintainerQueue.php");
$g->add("View Maintainer Entries (".getMaintainerCount().")", BASE."admin/adminMaintainers.php");
$g->add("View Bug Links (".getNumberOfQueuedBugLinks()."/".getNumberOfBugLinks().")", BASE."admin/adminBugs.php");
- $g->add("View Test Results Queue (".getNumberOfQueuedTests().")", BASE."admin/adminTestResults.php");
+ $g->add("View Test Results Queue (".testData::getNumberOfQueuedTests().")", BASE."admin/adminTestResults.php");
$g->addmisc(" ");
$g->add("Users Management", BASE."admin/adminUsers.php");
diff --git a/include/testResults.php b/include/testResults.php
index 1eb9809..748869b 100644
--- a/include/testResults.php
+++ b/include/testResults.php
@@ -525,11 +525,11 @@ class testData{
echo '',"\n";
// Installs
echo '
| Installs? | ',"\n";
- make_Installs_list("sInstalls", $this->sInstalls);
+ testData::make_Installs_list("sInstalls", $this->sInstalls);
echo ' |
',"\n";
// Runs
echo '| Runs? | ',"\n";
- make_Runs_list("sRuns", $this->sRuns);
+ testData::make_Runs_list("sRuns", $this->sRuns);
echo ' |
',"\n";
// Rating
echo '| Rating | ',"\n";
@@ -668,63 +668,59 @@ class testData{
echo "","\n";
echo html_frame_end();
-
}
-}
-/* Get the number of TestResults in the database */
-function getNumberOfQueuedTests()
-{
- $sQuery = "SELECT count(*) as num_tests
+ /* Get the number of TestResults in the database */
+ function getNumberOfQueuedTests()
+ {
+ $sQuery = "SELECT count(*) as num_tests
FROM testResults, appVersion
WHERE appVersion.versionId=testResults.versionId
and appVersion.queued='false'
and testResults.queued='true';";
- $hResult = query_parameters($sQuery);
- if($hResult)
- {
- $oRow = mysql_fetch_object($hResult);
- return $oRow->num_tests;
+ $hResult = query_parameters($sQuery);
+ if($hResult)
+ {
+ $oRow = mysql_fetch_object($hResult);
+ return $oRow->num_tests;
+ }
+ return 0;
}
- return 0;
-}
-function make_Installs_list($varname, $cvalue)
-{
-
- echo "\n";
-}
-function make_Runs_list($varname, $cvalue)
-{
-
- echo "\n";
-}
+ echo "\n";
+ }
+}
?>
|