Skip to content

Commit

Permalink
Merge branch 'MDL-30398-master' of git://github.com/ankitagarwal/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Nov 23, 2011
2 parents 9002363 + 7b5abb5 commit c897e46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions mod/lesson/lang/en/lesson.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@
$string['enteredthis'] = 'entered this.';
$string['entername'] = 'Enter a nickname for the high scores list';
$string['enterpassword'] = 'Please enter the password:';
$string['emptypassword'] = 'Password cannot be empty';
$string['eolstudentoutoftime'] = 'Attention: You ran out of time for this lesson. Your last answer may not have counted if it was answered after the time was up.';
$string['eolstudentoutoftimenoanswers'] = 'You did not answer any questions. You have received a 0 for this lesson.';
$string['essay'] = 'Essay';
Expand Down
3 changes: 3 additions & 0 deletions mod/lesson/mod_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,9 @@ function validation($data, $files) {
if (empty($data['maxtime']) and !empty($data['timed'])) {
$errors['timedgrp'] = get_string('err_numeric', 'form');
}
if (!empty($data['usepassword']) && empty($data['password'])) {
$errors['password'] = get_string('emptypassword', 'lesson');
}

return $errors;
}
Expand Down

0 comments on commit c897e46

Please sign in to comment.