"MDL-13766, php5 passing by reference by default, so remove the & in function definition"

This commit is contained in:
Dongsheng Cai 2010-03-09 06:25:20 +00:00
parent ad620df347
commit aea5595c4e
9 changed files with 11 additions and 11 deletions

View File

@ -251,7 +251,7 @@ class repository_boxnet extends repository {
* Add Plugin settings input to Moodle form
* @param object $mform
*/
public function type_config_form(&$mform) {
public function type_config_form($mform) {
$public_account = get_config('boxnet', 'public_account');
$api_key = get_config('boxnet', 'api_key');
if (empty($api_key)) {

View File

@ -137,14 +137,14 @@ class repository_filesystem extends repository {
public static function get_type_option_names() {
return array();
}
public function type_config_form(&$mform) {
public function type_config_form($mform) {
}
public function set_option($options = array()) {
$options['fs_path'] = clean_param($options['fs_path'], PARAM_PATH);
$ret = parent::set_option($options);
return $ret;
}
public function instance_config_form(&$mform) {
public function instance_config_form($mform) {
global $CFG;
$path = $CFG->dataroot . '/repository/';
if ($handle = opendir($path)) {

View File

@ -274,7 +274,7 @@ class repository_flickr extends repository {
* Add Plugin settings input to Moodle form
* @param object $mform
*/
public function type_config_form(&$mform) {
public function type_config_form($mform) {
global $CFG;
$api_key = get_config('flickr', 'api_key');
$secret = get_config('flickr', 'secret');

View File

@ -419,7 +419,7 @@ class repository_flickr_public extends repository {
* Add Instance settings input to Moodle form
* @param object $mform
*/
public function instance_config_form(&$mform) {
public function instance_config_form($mform) {
$mform->addElement('text', 'email_address', get_string('emailaddress', 'repository_flickr_public'));
//$mform->addRule('email_address', get_string('required'), 'required', null, 'client');
}
@ -436,7 +436,7 @@ class repository_flickr_public extends repository {
* Add Plugin settings input to Moodle form
* @param object $mform
*/
public function type_config_form(&$mform) {
public function type_config_form($mform) {
$api_key = get_config('flickr_public', 'api_key');
if (empty($api_key)) {
$api_key = '';

View File

@ -262,7 +262,7 @@ class repository_mahara extends repository {
* @global <type> $DB
* @param <type> $
*/
public function instance_config_form(&$mform) {
public function instance_config_form($mform) {
global $CFG, $DB;
//retrieve only Moodle peers

View File

@ -132,7 +132,7 @@ class repository_merlot extends repository {
*
* @param object $mform
*/
public function type_config_form(&$mform) {
public function type_config_form($mform) {
$licensekey = get_config('merlot', 'licensekey');
if (empty($licensekey)) {
$licensekey = '';

View File

@ -268,7 +268,7 @@ class repository_remotemoodle extends repository {
* @global <type> $DB
* @param <type> $
*/
public function instance_config_form(&$mform) {
public function instance_config_form($mform) {
global $CFG, $DB;
//retrieve only Moodle peers

View File

@ -136,7 +136,7 @@ class repository_s3 extends repository {
return array('access_key', 'secret_key');
}
public function type_config_form(&$mform) {
public function type_config_form($mform) {
$strrequired = get_string('required');
$mform->addElement('text', 'access_key', get_string('access_key', 'repository_s3'));
$mform->addElement('text', 'secret_key', get_string('secret_key', 'repository_s3'));

View File

@ -153,7 +153,7 @@ class repository_webdav extends repository {
return array('webdav_type', 'webdav_server', 'webdav_port', 'webdav_user', 'webdav_password');
}
public function instance_config_form(&$mform) {
public function instance_config_form($mform) {
$choices = array(0 => get_string('http', 'repository_webdav'), 1 => get_string('https', 'repository_webdav'));
$mform->addElement('select', 'webdav_type', get_string('webdav_type', 'repository_webdav'), $choices);
$mform->addRule('webdav_type', get_string('required'), 'required', null, 'client');