MDL-38852 repository_alfresco: fix missing setType calls
authorDan Poltawski <dan@moodle.com>
Wed, 3 Apr 2013 02:38:48 +0000 (10:38 +0800)
committerDan Poltawski <dan@moodle.com>
Wed, 3 Apr 2013 03:13:58 +0000 (11:13 +0800)
repository/alfresco/lib.php

index 7e8cfb4..ec71506 100644 (file)
@@ -274,6 +274,7 @@ class repository_alfresco extends repository {
             return false;
         }
         $mform->addElement('text', 'alfresco_url', get_string('alfresco_url', 'repository_alfresco'), array('size' => '40'));
+        $mform->setType('alfresco_url', PARAM_URL);
         $mform->addElement('static', 'alfreco_url_intro', '', get_string('alfrescourltext', 'repository_alfresco'));
         $mform->addRule('alfresco_url', get_string('required'), 'required', null, 'client');
         return true;