mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
Merge branch 'MDL-50269_master' of git://github.com/markn86/moodle
Conflicts: lib/upgrade.txt
This commit is contained in:
commit
200ab5266a
6 changed files with 24 additions and 16 deletions
|
@ -47,6 +47,8 @@ class question_engine_attempt_upgrader {
|
|||
protected $logger;
|
||||
|
||||
public function save_usage($preferredbehaviour, $attempt, $qas, $quizlayout) {
|
||||
global $OUTPUT;
|
||||
|
||||
$missing = array();
|
||||
|
||||
$layout = explode(',', $attempt->layout);
|
||||
|
@ -95,9 +97,10 @@ class question_engine_attempt_upgrader {
|
|||
$this->set_quiz_attempt_layout($attempt->uniqueid, implode(',', $layout));
|
||||
|
||||
if ($missing) {
|
||||
notify("Question sessions for questions " .
|
||||
$message = "Question sessions for questions " .
|
||||
implode(', ', $missing) .
|
||||
" were missing when upgrading question usage {$attempt->uniqueid}.");
|
||||
" were missing when upgrading question usage {$attempt->uniqueid}.";
|
||||
echo $OUTPUT->notification($message);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue