Skip to content

Commit

Permalink
Merge branch 'master_MDL-28410'
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Aug 2, 2011
2 parents 74b0ad6 + aa20227 commit 411b2e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion mod/choice/lang/en/choice.php
Expand Up @@ -31,7 +31,7 @@
$string['displaymode'] = 'Display mode';
$string['displayvertical'] = 'Display vertically';
$string['expired'] = 'Sorry, this activity closed on {$a} and is no longer available';
$string['fillinatleastoneoption'] = 'You need to provide at least two possible answers.';
$string['atleastoneoption'] = 'You need to provide at least one possible answer.';
$string['full'] = '(Full)';
$string['havetologin'] = 'You have to log in before you can submit your choice';
$string['choice'] = 'Choice';
Expand Down
6 changes: 1 addition & 5 deletions mod/choice/mod_form.php
Expand Up @@ -127,11 +127,7 @@ function validation($data, $files) {
}

if ($choices < 1) {
$errors['option[0]'] = get_string('fillinatleastoneoption', 'choice');
}

if ($choices < 2) {
$errors['option[1]'] = get_string('fillinatleastoneoption', 'choice');
$errors['option[0]'] = get_string('atleastoneoption', 'choice');
}

return $errors;
Expand Down
2 changes: 1 addition & 1 deletion mod/choice/version.php
Expand Up @@ -5,7 +5,7 @@
// This fragment is called by /admin/index.php
////////////////////////////////////////////////////////////////////////////////

$module->version = 2010101300;
$module->version = 2010101301;
$module->requires = 2010080300; // Requires this Moodle version
$module->cron = 0;

Expand Down

0 comments on commit 411b2e1

Please sign in to comment.