MDL-44118 new environment check are all quiz attempts upgraded.

In Moodle 2.1, there was a major DB upgrade relating to questions, and
it was possible to delay some of that upgrade. Now, those DB tables are
changing again, and the time has come to insist that all the updata has
been upgraded (or deleted).
This commit is contained in:
Tim Hunt
2014-02-18 11:55:17 +00:00
parent 692d247a3a
commit e4c20157c0
5 changed files with 47 additions and 9 deletions
+6 -6
View File
@@ -1123,7 +1123,7 @@ class environment_results {
*/
var $part;
/**
* @var bool
* @var bool true means the test passed and all is OK. false means it failed.
*/
var $status;
/**
@@ -1180,11 +1180,11 @@ class environment_results {
/**
* Set the status
*
* @param boolean $status the status (true/false)
* @param bool $testpassed true means the test passed and all is OK. false means it failed.
*/
function setStatus($status) {
$this->status=$status;
if ($status) {
function setStatus($testpassed) {
$this->status = $testpassed;
if ($testpassed) {
$this->setErrorCode(NO_ERROR);
}
}
@@ -1274,7 +1274,7 @@ class environment_results {
/**
* Get the status
*
* @return boolean result
* @return bool true means the test passed and all is OK. false means it failed.
*/
function getStatus() {
return $this->status;