Permalink
Browse files

MDL-28166 fix some more instances of my favourite becuase typo.

  • Loading branch information...
1 parent 54bf1cf commit eeb78f323a410df28321c1ebd281235bd47295a6 @timhunt timhunt committed with stronk7 Jul 6, 2011
View
@@ -490,7 +490,7 @@ public function is_finished($numprevattempts, $lastattempt) {
}
/**
- * 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 @@ public static function define_restore_log_rules() {
// 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}',
View
@@ -622,15 +622,15 @@ 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;
$where = 'quiza.attempt = first_last_attempts.firstattempt AND';
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;
View
@@ -338,7 +338,7 @@ protected function definition() {
'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);
View
@@ -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() {

0 comments on commit eeb78f3

Please sign in to comment.