Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'MDL-33808-21' of git://github.com/danpoltawski/moodle i…

…nto MOODLE_21_STABLE
  • Loading branch information...
commit d25f6b810490fb3e4b5ba82e80d0fdbb47fea187 2 parents 236534f + 6ceafdb
@samhemelryk samhemelryk authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 repository/lib.php
View
6 repository/lib.php
@@ -1253,7 +1253,7 @@ public static function display_instances_list($context, $typename = null) {
}
$type = repository::get_type_by_id($i->options['typeid']);
- $table->data[] = array($i->name, $type->get_readablename(), $settings, $delete);
+ $table->data[] = array(format_string($i->name), $type->get_readablename(), $settings, $delete);
//display a grey row if the type is defined as not visible
if (isset($type) && !$type->get_visible()) {
@@ -1450,7 +1450,7 @@ public function supported_returntypes() {
$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 @@ public function type_config_form($mform, $classname = '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 @@ protected function add_defaults() {
$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() {
Please sign in to comment.
Something went wrong with that request. Please try again.