Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-38851 Admin: Fixed setType notice for portfolio

  • Loading branch information...
commit 962b1bafc471057db24fdb3599f05e342e2ec6ce 1 parent 1fe56a2
Rajesh Taneja authored
1  portfolio/boxnet/lib.php
@@ -112,6 +112,7 @@ public static function admin_config_form(&$mform) {
112 112
 
113 113
         $mform->addElement('text', 'apikey', get_string('apikey', 'portfolio_boxnet'));
114 114
         $mform->addRule('apikey', get_string('required'), 'required', null, 'client');
  115
+        $mform->setType('apikey', PARAM_RAW_TRIMMED);
115 116
         $a = new stdClass();
116 117
         $a->servicesurl = 'http://www.box.net/developers/services';
117 118
         $a->callbackurl = $CFG->wwwroot . '/portfolio/add.php?postcontrol=1&type=boxnet';
2  portfolio/flickr/lib.php
@@ -102,8 +102,10 @@ public static function admin_config_form(&$mform) {
102 102
         $strrequired = get_string('required');
103 103
         $mform->addElement('text', 'apikey', get_string('apikey', 'portfolio_flickr'), array('size' => 30));
104 104
         $mform->addRule('apikey', $strrequired, 'required', null, 'client');
  105
+        $mform->setType('apikey', PARAM_RAW_TRIMMED);
105 106
         $mform->addElement('text', 'sharedsecret', get_string('sharedsecret', 'portfolio_flickr'));
106 107
         $mform->addRule('sharedsecret', $strrequired, 'required', null, 'client');
  108
+        $mform->setType('sharedsecret', PARAM_RAW_TRIMMED);
107 109
         $a = new stdClass();
108 110
         $a->applyurl = 'http://www.flickr.com/services/api/keys/apply/';
109 111
         $a->keysurl = 'http://www.flickr.com/services/api/keys/';
2  portfolio/mahara/lib.php
@@ -92,7 +92,9 @@ public static function admin_config_form(&$mform) {
92 92
         }
93 93
         $mform->addElement('select', 'mnethostid', get_string('mnethost', 'portfolio_mahara'), $hosts);
94 94
         $mform->addRule('mnethostid', $strrequired, 'required', null, 'client');
  95
+        $mform->setType('mnethostid', PARAM_INT);
95 96
         $mform->addElement('selectyesno', 'enableleap2a', get_string('enableleap2a', 'portfolio_mahara'));
  97
+        $mform->setType('enableleap2a', PARAM_BOOL);
96 98
     }
97 99
 
98 100
     public function instance_sanity_check() {

0 notes on commit 962b1ba

Please sign in to comment.
Something went wrong with that request. Please try again.