mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-34311 mod_url: Missing setType on the external url
This commit is contained in:
parent
9f9dde40ee
commit
b716cd2b70
@ -50,6 +50,7 @@ class mod_url_mod_form extends moodleform_mod {
|
||||
//-------------------------------------------------------
|
||||
$mform->addElement('header', 'content', get_string('contentheader', 'url'));
|
||||
$mform->addElement('url', 'externalurl', get_string('externalurl', 'url'), array('size'=>'60'), array('usefilepicker'=>true));
|
||||
$mform->setType('externalurl', PARAM_URL);
|
||||
$mform->addRule('externalurl', null, 'required', null, 'client');
|
||||
//-------------------------------------------------------
|
||||
$mform->addElement('header', 'optionssection', get_string('optionsheader', 'url'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user