From 6e9cd6698ece7cb31be56637f57e662318dbddca Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Sun, 5 Jun 2011 19:34:12 +0200 Subject: [PATCH] MDL-27723 whitespace cleanup of admin directory --- admin/registration/confirmregistration.php | 4 ++-- admin/registration/index.php | 4 ++-- admin/report/spamcleaner/module.js | 2 +- admin/roles/module.js | 2 +- admin/settings/courses.php | 6 +++--- admin/webservice/service_user_settings.php | 4 ++-- admin/webservice/testclient.php | 4 ++-- admin/webservice/tokens.php | 2 +- 8 files changed, 14 insertions(+), 14 deletions(-) diff --git a/admin/registration/confirmregistration.php b/admin/registration/confirmregistration.php index 517f4e156c8..12afb50dbd8 100644 --- a/admin/registration/confirmregistration.php +++ b/admin/registration/confirmregistration.php @@ -47,7 +47,7 @@ $error = optional_param('error', '', PARAM_ALPHANUM); admin_externalpage_setup('registrationindex'); if (!empty($error) and $error == 'urlalreadyexist') { - throw new moodle_exception('urlalreadyregistered', 'hub', + throw new moodle_exception('urlalreadyregistered', 'hub', $CFG->wwwroot . '/' . $CFG->admin . '/registration/index.php'); } @@ -85,7 +85,7 @@ if (!empty($registeredhub) and $registeredhub->token == $token) { echo $OUTPUT->footer(); } else { - throw new moodle_exception('wrongtoken', 'hub', + throw new moodle_exception('wrongtoken', 'hub', $CFG->wwwroot . '/' . $CFG->admin . '/registration/index.php'); } diff --git a/admin/registration/index.php b/admin/registration/index.php index b1a2d91224d..02e5cdebac3 100644 --- a/admin/registration/index.php +++ b/admin/registration/index.php @@ -148,12 +148,12 @@ if (empty($cancel) and $unregistration and !$confirm) { $moodleorghub = $registrationmanager->get_registeredhub(HUB_MOODLEORGHUBURL); if (!empty($moodleorghub)) { $registeredonmoodleorg = true; - } + } echo $OUTPUT->heading(get_string('registeron', 'hub'), 3, 'main'); echo $renderer->registrationselector($registeredonmoodleorg); - if (extension_loaded('xmlrpc')) { + if (extension_loaded('xmlrpc')) { $hubs = $registrationmanager->get_registered_on_hubs(); if (!empty($hubs)) { echo $OUTPUT->heading(get_string('registeredon', 'hub'), 3, 'main'); diff --git a/admin/report/spamcleaner/module.js b/admin/report/spamcleaner/module.js index dd0565c7099..56b13ef154d 100644 --- a/admin/report/spamcleaner/module.js +++ b/admin/report/spamcleaner/module.js @@ -108,7 +108,7 @@ M.report_spamcleaner = { context.Y = Y; context.me = me; if (Y.one("#removeall_btn")) { - Y.on("click", context.del_all, "#removeall_btn"); + Y.on("click", context.del_all, "#removeall_btn"); } }); } diff --git a/admin/roles/module.js b/admin/roles/module.js index 92b47e9fa09..7326cf34252 100644 --- a/admin/roles/module.js +++ b/admin/roles/module.js @@ -138,7 +138,7 @@ M.core_role.init_cap_table_filter = function(Y, tableid, contextid) { lastheading = null; this.setFilterCookieValue(filtertext); - + this.button.set('disabled', (filtertext == '')); this.table.all('tr').each(function(row){ diff --git a/admin/settings/courses.php b/admin/settings/courses.php index d436a315699..13291c78093 100644 --- a/admin/settings/courses.php +++ b/admin/settings/courses.php @@ -139,7 +139,7 @@ if ($hassiteconfig 400 => '400', 500 => '500'); $temp->add(new admin_setting_configselect('backup/backup_auto_keep', get_string('keep'), get_string('backupkeephelp'), 1, $keepoptoins)); - + $temp->add(new admin_setting_heading('automatedsettings', get_string('automatedsettings','backup'), '')); $temp->add(new admin_setting_configcheckbox('backup/backup_auto_users', get_string('users'), get_string('backupusershelp'), 1)); @@ -152,8 +152,8 @@ if ($hassiteconfig $temp->add(new admin_setting_configcheckbox('backup/backup_auto_userscompletion', get_string('generaluserscompletion','backup'), get_string('configgeneraluserscompletion','backup'), 1)); $temp->add(new admin_setting_configcheckbox('backup/backup_auto_logs', get_string('logs'), get_string('backuplogshelp'), 0)); $temp->add(new admin_setting_configcheckbox('backup/backup_auto_histories', get_string('generalhistories','backup'), get_string('configgeneralhistories','backup'), 0)); - - + + //$temp->add(new admin_setting_configcheckbox('backup/backup_auto_messages', get_string('messages', 'message'), get_string('backupmessageshelp','message'), 0)); //$temp->add(new admin_setting_configcheckbox('backup/backup_auto_blogs', get_string('blogs', 'blog'), get_string('backupblogshelp','blog'), 0)); diff --git a/admin/webservice/service_user_settings.php b/admin/webservice/service_user_settings.php index 40b165e4589..18d0ef56abc 100644 --- a/admin/webservice/service_user_settings.php +++ b/admin/webservice/service_user_settings.php @@ -33,7 +33,7 @@ $userid = required_param('userid', PARAM_INT); admin_externalpage_setup('externalserviceusersettings'); //define nav bar -$PAGE->set_url('/' . $CFG->admin . '/webservice/service_user_settings.php', +$PAGE->set_url('/' . $CFG->admin . '/webservice/service_user_settings.php', array('id' => $serviceid, 'userid' => $userid)); $node = $PAGE->settingsnav->find('externalservices', navigation_node::TYPE_SETTING); if ($node) { @@ -62,7 +62,7 @@ if ($usersettingsform->is_cancelled()) { $serviceuserinfo->id = $serviceuser->serviceuserid; $serviceuserinfo->iprestriction = $settingsformdata->iprestriction; $serviceuserinfo->validuntil = $settingsformdata->validuntil; - + $webservicemanager->update_ws_authorised_user($serviceuserinfo); //TODO: assign capability diff --git a/admin/webservice/testclient.php b/admin/webservice/testclient.php index 3888b01ff07..228c7b7bf21 100644 --- a/admin/webservice/testclient.php +++ b/admin/webservice/testclient.php @@ -37,7 +37,7 @@ $PAGE->set_url('/' . $CFG->admin . '/webservice/testclient.php'); $PAGE->navbar->ignore_active(true); $PAGE->navbar->add(get_string('administrationsite')); $PAGE->navbar->add(get_string('development', 'admin')); -$PAGE->navbar->add(get_string('testclient', 'webservice'), +$PAGE->navbar->add(get_string('testclient', 'webservice'), new moodle_url('/' . $CFG->admin . '/webservice/testclient.php')); if (!empty($function)) { $PAGE->navbar->add($function); @@ -169,4 +169,4 @@ if ($mform->is_cancelled()) { $mform->display(); echo $OUTPUT->footer(); die; -} \ No newline at end of file +} diff --git a/admin/webservice/tokens.php b/admin/webservice/tokens.php index 2d72943f554..ec06e23185f 100644 --- a/admin/webservice/tokens.php +++ b/admin/webservice/tokens.php @@ -94,7 +94,7 @@ switch ($action) { die; break; - case 'delete': + case 'delete': $token = $webservicemanager->get_created_by_user_ws_token($USER->id, $tokenid); //Delete the token