mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-28166 fix some more instances of my favourite becuase typo.
This commit is contained in:
parent
cbb8b55c33
commit
81522abd63
@ -490,7 +490,7 @@ abstract class quiz_access_rule_base {
|
||||
}
|
||||
|
||||
/**
|
||||
* If, becuase of this rule, the user has to finish their attempt by a certain time,
|
||||
* If, because of this rule, the user has to finish their attempt by a certain time,
|
||||
* you should override this method to return the amount of time left in seconds.
|
||||
* @param object $attempt the current attempt
|
||||
* @param int $timenow the time now. We don't use $this->_timenow, so we can
|
||||
|
@ -122,7 +122,7 @@ class restore_quiz_activity_task extends restore_activity_task {
|
||||
// All the ones calling to review.php have two rules to handle both old and new urls
|
||||
// in any case they are always converted to new urls on restore
|
||||
// TODO: In Moodle 2.x (x >= 5) kill the old rules
|
||||
// Note we are using the 'quiz_attempt_id' mapping becuase that is the
|
||||
// Note we are using the 'quiz_attempt_id' mapping because that is the
|
||||
// one containing the quiz_attempt->ids old an new for quiz-attempt
|
||||
$rules[] = new restore_log_rule('quiz', 'attempt',
|
||||
'review.php?id={course_module}&attempt={quiz_attempt}', '{quiz}',
|
||||
|
@ -622,7 +622,7 @@ function quiz_update_all_final_grades($quiz) {
|
||||
|
||||
switch ($quiz->grademethod) {
|
||||
case QUIZ_ATTEMPTFIRST:
|
||||
// Becuase of the where clause, there will only be one row, but we
|
||||
// Because of the where clause, there will only be one row, but we
|
||||
// must still use an aggregate function.
|
||||
$select = 'MAX(quiza.sumgrades)';
|
||||
$join = $firstlastattemptjoin;
|
||||
@ -630,7 +630,7 @@ function quiz_update_all_final_grades($quiz) {
|
||||
break;
|
||||
|
||||
case QUIZ_ATTEMPTLAST:
|
||||
// Becuase of the where clause, there will only be one row, but we
|
||||
// Because of the where clause, there will only be one row, but we
|
||||
// must still use an aggregate function.
|
||||
$select = 'MAX(quiza.sumgrades)';
|
||||
$join = $firstlastattemptjoin;
|
||||
|
@ -338,7 +338,7 @@ class mod_quiz_mod_form extends moodleform_mod {
|
||||
'boundary_add_fields');
|
||||
|
||||
// Add the disabledif rules. We cannot do this using the $repeatoptions parameter to
|
||||
// repeat_elements becuase we don't want to dissable the first feedbacktext.
|
||||
// repeat_elements because we don't want to dissable the first feedbacktext.
|
||||
for ($i = 0; $i < $nextel; $i++) {
|
||||
$mform->disabledIf('feedbackboundaries[' . $i . ']', 'grade', 'eq', 0);
|
||||
$mform->disabledIf('feedbacktext[' . ($i + 1) . ']', 'grade', 'eq', 0);
|
||||
|
@ -52,7 +52,7 @@ class mod_quiz_admin_review_setting extends admin_setting {
|
||||
|
||||
/**
|
||||
* This should match {@link mod_quiz_mod_form::$reviewfields} but copied
|
||||
* here becuase generating the admin tree needs to be fast.
|
||||
* here because generating the admin tree needs to be fast.
|
||||
* @return array
|
||||
*/
|
||||
public static function fields() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user