Add basic rating logic checking to testData::CheckOutputEditorInput() to prevent people from saying a running application is
garbage and an application that won't install is platinum.
This commit is contained in:
committed by
WineHQ
parent
ddcb2691a7
commit
4586465b09
@@ -583,6 +583,14 @@ class testData{
|
|||||||
if (empty($aValues['sTestedRating']))
|
if (empty($aValues['sTestedRating']))
|
||||||
$errors .= "<li>Please enter a rating based on how well this application runs.</li>\n";
|
$errors .= "<li>Please enter a rating based on how well this application runs.</li>\n";
|
||||||
|
|
||||||
|
// Basic checking of rating logic to ensure that the users test results
|
||||||
|
// are consistent
|
||||||
|
if (($aValues['sRuns'] != "Yes") && ($aValues['sTestedRating'] != GARBAGE_RATING))
|
||||||
|
$errors .= "<li>Applications that do not run should be rated ‘Garbage’.</li>\n";
|
||||||
|
|
||||||
|
if (($aValues['sInstalls'] == "No") && ($aValues['sTestedRating'] == PLATINUM_RATING))
|
||||||
|
$errors .= "<li>An application can only get a Platinum rating if it installs and runs ‘out of the box’.</li>\n";
|
||||||
|
|
||||||
return $errors;
|
return $errors;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user