Permalink
Browse files

MDL-38851 Admin: Fixed setType notice for portfolio

  • Loading branch information...
Rajesh Taneja
Rajesh Taneja committed Apr 23, 2013
1 parent 1fe56a2 commit 962b1bafc471057db24fdb3599f05e342e2ec6ce
Showing with 5 additions and 0 deletions.
  1. +1 −0 portfolio/boxnet/lib.php
  2. +2 −0 portfolio/flickr/lib.php
  3. +2 −0 portfolio/mahara/lib.php
View
@@ -112,6 +112,7 @@ public static function admin_config_form(&$mform) {
$mform->addElement('text', 'apikey', get_string('apikey', 'portfolio_boxnet'));
$mform->addRule('apikey', get_string('required'), 'required', null, 'client');
+ $mform->setType('apikey', PARAM_RAW_TRIMMED);
$a = new stdClass();
$a->servicesurl = 'http://www.box.net/developers/services';
$a->callbackurl = $CFG->wwwroot . '/portfolio/add.php?postcontrol=1&type=boxnet';
View
@@ -102,8 +102,10 @@ public static function admin_config_form(&$mform) {
$strrequired = get_string('required');
$mform->addElement('text', 'apikey', get_string('apikey', 'portfolio_flickr'), array('size' => 30));
$mform->addRule('apikey', $strrequired, 'required', null, 'client');
+ $mform->setType('apikey', PARAM_RAW_TRIMMED);
$mform->addElement('text', 'sharedsecret', get_string('sharedsecret', 'portfolio_flickr'));
$mform->addRule('sharedsecret', $strrequired, 'required', null, 'client');
+ $mform->setType('sharedsecret', PARAM_RAW_TRIMMED);
$a = new stdClass();
$a->applyurl = 'http://www.flickr.com/services/api/keys/apply/';
$a->keysurl = 'http://www.flickr.com/services/api/keys/';
View
@@ -92,7 +92,9 @@ public static function admin_config_form(&$mform) {
}
$mform->addElement('select', 'mnethostid', get_string('mnethost', 'portfolio_mahara'), $hosts);
$mform->addRule('mnethostid', $strrequired, 'required', null, 'client');
+ $mform->setType('mnethostid', PARAM_INT);
$mform->addElement('selectyesno', 'enableleap2a', get_string('enableleap2a', 'portfolio_mahara'));
+ $mform->setType('enableleap2a', PARAM_BOOL);
}
public function instance_sanity_check() {

0 comments on commit 962b1ba

Please sign in to comment.