Permalink
Browse files

Tool base URLs don't need to start with http(s)

  • Loading branch information...
1 parent 879e97b commit 844afad045e859e06c5c630149835b8a4ad33f2f @scriby scriby committed Sep 1, 2011
Showing with 0 additions and 3 deletions.
  1. +0 −3 mod/lti/edit_form.php
View
3 mod/lti/edit_form.php
@@ -64,12 +64,9 @@ function definition() {
// $mform->addHelpButton('lti_typename', 'typename','lti');
$mform->addRule('lti_typename', null, 'required', null, 'client');
- $regex = '/^(http|https):\/\/([a-z0-9-]\.+)*/i';
-
$mform->addElement('text', 'lti_toolurl', get_string('toolurl', 'lti'), array('size'=>'64'));
$mform->setType('lti_toolurl', PARAM_TEXT);
// $mform->addHelpButton('lti_toolurl', 'toolurl', 'lti');
- $mform->addRule('lti_toolurl', get_string('validurl', 'lti'), 'regex', $regex, 'client');
$mform->addRule('lti_toolurl', null, 'required', null, 'client');
$mform->addElement('text', 'lti_resourcekey', get_string('resourcekey', 'lti'));

0 comments on commit 844afad

Please sign in to comment.