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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user