Permalink
Browse files

MDL-37681 repository_webdav: improved form handling when configuring …

…an instance
  • Loading branch information...
1 parent 93e9ea9 commit 46eec6e46b89a7e8e3f08e460d917f2d1a2959d8 @FMCorz FMCorz committed with Sam Hemelryk Mar 4, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 repository/webdav/lib.php
@@ -202,10 +202,10 @@ public function instance_config_form($mform) {
$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);

0 comments on commit 46eec6e

Please sign in to comment.