MDL-37681 repository_webdav: improved form handling when configuring an instance

This commit is contained in:
Frederic Massart 2013-03-04 13:45:32 +13:00 committed by Sam Hemelryk
parent 9fd0cb9cb1
commit ce96f23fe1

View File

@ -177,10 +177,10 @@ class repository_webdav extends repository {
$mform->addElement('select', 'webdav_auth', get_string('authentication', 'admin'), $choices);
$mform->addRule('webdav_auth', get_string('required'), 'required', null, 'client');
$mform->addElement('text', 'webdav_port', get_string('webdav_port', 'repository_webdav'), array('size' => '40'));
$mform->addElement('text', 'webdav_user', get_string('webdav_user', 'repository_webdav'), array('size' => '40'));
$mform->addElement('text', 'webdav_password', get_string('webdav_password', 'repository_webdav'), array('size' => '40'));
$mform->addElement('password', 'webdav_password', get_string('webdav_password', 'repository_webdav'),
array('size' => '40'));
}
public function supported_returntypes() {
return (FILE_INTERNAL | FILE_EXTERNAL);