Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-34311 mod_url: Missing setType on the external url

  • Loading branch information...
commit b716cd2b702da070003cd19c808eff3309e32c6f 1 parent 9f9dde4
@danpoltawski danpoltawski authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  mod/url/mod_form.php
View
1  mod/url/mod_form.php
@@ -50,6 +50,7 @@ function definition() {
//-------------------------------------------------------
$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'));
Please sign in to comment.
Something went wrong with that request. Please try again.