MDL-33808 - incorrect cleaning of repository names
This commit is contained in:
+3
-1
@@ -1450,7 +1450,7 @@ abstract class repository {
|
||||
$ft = new filetype_parser;
|
||||
$meta = new stdClass();
|
||||
$meta->id = $this->id;
|
||||
$meta->name = $this->get_name();
|
||||
$meta->name = format_string($this->get_name());
|
||||
$meta->type = $this->options['type'];
|
||||
$meta->icon = $OUTPUT->pix_url('icon', 'repository_'.$meta->type)->out(false);
|
||||
$meta->supported_types = $ft->get_extensions($this->supported_filetypes());
|
||||
@@ -1762,6 +1762,7 @@ abstract class repository {
|
||||
// it can be empty, then moodle will look for instance name from language string
|
||||
$mform->addElement('text', 'pluginname', get_string('pluginname', 'repository'), array('size' => '40'));
|
||||
$mform->addElement('static', 'pluginnamehelp', '', get_string('pluginnamehelp', 'repository'));
|
||||
$mform->setType('pluginname', PARAM_TEXT);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1892,6 +1893,7 @@ final class repository_instance_form extends moodleform {
|
||||
|
||||
$mform->addElement('text', 'name', get_string('name'), 'maxlength="100" size="30"');
|
||||
$mform->addRule('name', $strrequired, 'required', null, 'client');
|
||||
$mform->setType('name', PARAM_TEXT);
|
||||
}
|
||||
|
||||
public function definition() {
|
||||
|
||||
Reference in New Issue
Block a user