Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-39401 portfolio: fixed setType() warnings in box.net and flickr p…

…ortfolios
  • Loading branch information...
commit 221389376606904d530ffe4e101242b1edba9814 1 parent cf5a329
@rwijaya rwijaya authored
Showing with 4 additions and 0 deletions.
  1. +1 −0  portfolio/boxnet/lib.php
  2. +3 −0  portfolio/flickr/lib.php
View
1  portfolio/boxnet/lib.php
@@ -94,6 +94,7 @@ public function export_config_form(&$mform) {
$folders = $this->get_folder_list();
$mform->addElement('checkbox', 'plugin_sharefile', get_string('sharefile', 'portfolio_boxnet'));
$mform->addElement('text', 'plugin_newfolder', get_string('newfolder', 'portfolio_boxnet'));
+ $mform->setType('plugin_newfolder', PARAM_RAW);
$mform->addElement('checkbox', 'plugin_sharefolder', get_string('sharefolder', 'portfolio_boxnet'));
$folders[0] = '----';
ksort($folders);
View
3  portfolio/flickr/lib.php
@@ -160,8 +160,11 @@ public function post_control($stage, $params) {
public function export_config_form(&$mform) {
$mform->addElement('text', 'plugin_title', get_string('title', 'portfolio_flickr'));
+ $mform->setType('plugin_title', PARAM_TEXT);
$mform->addElement('textarea', 'plugin_description', get_string('description'));
+ $mform->setType('plugin_description', PARAM_CLEANHTML);
$mform->addElement('text', 'plugin_tags', get_string('tags'));
+ $mform->setType('plugin_tags', PARAM_TAGLIST);
$mform->addElement('checkbox', 'plugin_is_public', get_string('ispublic', 'portfolio_flickr'));
$mform->addElement('checkbox', 'plugin_is_family', get_string('isfamily', 'portfolio_flickr'));
$mform->addElement('checkbox', 'plugin_is_friend', get_string('isfriend', 'portfolio_flickr'));
Please sign in to comment.
Something went wrong with that request. Please try again.