Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-43488 remoe city and country requirement from signup

This was supposed to be part of MDL-28558.
  • Loading branch information...
commit 7bd95129d38bc9f2132e4dd409aa509206437b18 1 parent 12efa52
@skodak skodak authored
Showing with 0 additions and 4 deletions.
  1. +0 −2  lang/en/moodle.php
  2. +0 −2  login/signup_form.php
View
2  lang/en/moodle.php
@@ -1121,8 +1121,6 @@
$string['minutes'] = 'minutes';
$string['miscellaneous'] = 'Miscellaneous';
$string['missingcategory'] = 'You need to choose a category';
-$string['missingcity'] = 'Missing city/town';
-$string['missingcountry'] = 'Missing country';
$string['missingdescription'] = 'Missing description';
$string['missingemail'] = 'Missing email address';
$string['missingfirstname'] = 'Missing given name';
View
2  login/signup_form.php
@@ -73,7 +73,6 @@ function definition() {
$mform->addElement('text', 'city', get_string('city'), 'maxlength="120" size="20"');
$mform->setType('city', PARAM_TEXT);
- $mform->addRule('city', get_string('missingcity'), 'required', null, 'server');
if (!empty($CFG->defaultcity)) {
$mform->setDefault('city', $CFG->defaultcity);
}
@@ -82,7 +81,6 @@ function definition() {
$default_country[''] = get_string('selectacountry');
$country = array_merge($default_country, $country);
$mform->addElement('select', 'country', get_string('country'), $country);
- $mform->addRule('country', get_string('missingcountry'), 'required', null, 'server');
if( !empty($CFG->country) ){
$mform->setDefault('country', $CFG->country);
Please sign in to comment.
Something went wrong with that request. Please try again.