Merge branch 'MDL-28507' of git://github.com/timhunt/moodle
This commit is contained in:
@@ -60,7 +60,7 @@ class local_qeupgradehelper_attempt_upgrader extends question_engine_attempt_upg
|
||||
gc_collect_cycles(); // This was really helpful in PHP 5.2. Perhaps remove.
|
||||
$a = new stdClass();
|
||||
$a->done = $done;
|
||||
$a->todo = $outof;
|
||||
$a->outof = $outof;
|
||||
$this->progressbar->update($done, $outof,
|
||||
get_string('resettingquizattemptsprogress', 'local_qeupgradehelper', $a));
|
||||
}
|
||||
|
||||
@@ -567,16 +567,16 @@ function xmldb_quiz_upgrade($oldversion) {
|
||||
$pbar = new progress_bar('q15upgrade');
|
||||
$pbar->create();
|
||||
$a = new stdClass();
|
||||
$a->todo = count($oldattempts);
|
||||
$a->outof = count($oldattempts);
|
||||
$a->done = 0;
|
||||
$pbar->update($a->done, $a->todo,
|
||||
$pbar->update($a->done, $a->outof,
|
||||
get_string('upgradingveryoldquizattempts', 'quiz', $a));
|
||||
|
||||
foreach ($oldattempts as $oldattempt) {
|
||||
quiz_upgrade_very_old_question_sessions($oldattempt);
|
||||
|
||||
$a->done += 1;
|
||||
$pbar->update($a->done, $a->todo,
|
||||
$pbar->update($a->done, $a->outof,
|
||||
get_string('upgradingveryoldquizattempts', 'quiz', $a));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
$string['allattempts'] = 'Show all attempts';
|
||||
$string['allattemptscontributetograde'] = 'All attempts contribute to final grade for user.';
|
||||
$string['allstudents'] = 'Show all {$a}';
|
||||
$string['attemptprogress'] = 'Attempt {$a->done} of {$a->todo}';
|
||||
$string['attemptsonly'] = 'Show {$a} with attempts only';
|
||||
$string['attemptsprepage'] = 'Attempts shown per page';
|
||||
$string['deleteselected'] = 'Delete selected attempts';
|
||||
@@ -56,7 +55,6 @@ $string['pluginname'] = 'Grades';
|
||||
$string['preferencespage'] = 'Preferences just for this page';
|
||||
$string['preferencessave'] = 'Show report';
|
||||
$string['preferencesuser'] = 'Your preferences for this report';
|
||||
$string['qprogress'] = 'Question {$a->done} of {$a->todo}';
|
||||
$string['regrade'] = 'Regrade';
|
||||
$string['regradeall'] = 'Regrade all';
|
||||
$string['regradealldry'] = 'Dry run a full regrade';
|
||||
|
||||
Reference in New Issue
Block a user