diff --git a/include/testData.php b/include/testData.php index cc5528f..18b037a 100644 --- a/include/testData.php +++ b/include/testData.php @@ -466,7 +466,7 @@ class testData{ } /* retrieve the latest test result for a given version id */ - function get_test_for_versionid($iVersionId) + function getNewestTestIdFromVersionId($iVersionId) { $sQuery = "SELECT testingId FROM testResults WHERE versionId = '?' diff --git a/include/version.php b/include/version.php index 9691030..4295b0b 100644 --- a/include/version.php +++ b/include/version.php @@ -881,7 +881,7 @@ class Version { if(!$oTest->iTestingId) { /* fetch a new test id for this version */ - $iTestingId = testData::get_test_for_versionid($this->iVersionId); + $iTestingId = testData::getNewestTestIdFromVersionId($this->iVersionId); $oTest = new testData($iTestingId); }