diff --git a/mod/quiz/accessrules.php b/mod/quiz/accessrules.php index fc79ddbe539..054fdb9c444 100644 --- a/mod/quiz/accessrules.php +++ b/mod/quiz/accessrules.php @@ -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 diff --git a/mod/quiz/backup/moodle2/restore_quiz_activity_task.class.php b/mod/quiz/backup/moodle2/restore_quiz_activity_task.class.php index 6b53c5ec3ae..0bad77d9809 100644 --- a/mod/quiz/backup/moodle2/restore_quiz_activity_task.class.php +++ b/mod/quiz/backup/moodle2/restore_quiz_activity_task.class.php @@ -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}', diff --git a/mod/quiz/locallib.php b/mod/quiz/locallib.php index 8cad96ad9cd..591eb0a77a9 100644 --- a/mod/quiz/locallib.php +++ b/mod/quiz/locallib.php @@ -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; diff --git a/mod/quiz/mod_form.php b/mod/quiz/mod_form.php index f05302eed8b..d93efdd2bf0 100644 --- a/mod/quiz/mod_form.php +++ b/mod/quiz/mod_form.php @@ -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); diff --git a/mod/quiz/settingslib.php b/mod/quiz/settingslib.php index c0dc19859b6..36247b7d6f3 100644 --- a/mod/quiz/settingslib.php +++ b/mod/quiz/settingslib.php @@ -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() {