Skip to content

Commit

Permalink
mnet MDL-21582 fixing notices
Browse files Browse the repository at this point in the history
  • Loading branch information
Penny Leach committed Feb 16, 2010
1 parent 6150690 commit fc36306
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion admin/mnet/delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@
echo $OUTPUT->footer();
} elseif ('delete' == $step) {
$mnet_peer->delete();
redirect('peers.php', get_string('hostdeleted', 'mnet'), 5);
redirect(new moodle_url('/admin/mnet/peers.php'), get_string('hostdeleted', 'mnet'), 5);
}
4 changes: 2 additions & 2 deletions admin/mnet/peers.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
// first process the register all hosts setting if required
if (!empty($updra)) {
set_config('mnet_register_allhosts', optional_param('registerallhosts', 0, PARAM_INT));
redirect('/admin/mnet/peers.php', get_string('changessaved'));
redirect(new moodle_url('/admin/mnet/peers.php'), get_string('changessaved'));
}

$adminsection = 'mnetpeers';
Expand Down Expand Up @@ -161,7 +161,7 @@
$mnet_peer->public_key_expires = $credentials['validTo_time_t'];

if ($mnet_peer->commit()) {
redirect('peers.php?hostid='.$mnet_peer->id, get_string('changessaved'));
redirect(new moodle_url('/admin/mnet/peers.php', array('hostid' => $mnet_peer->id)), get_string('changessaved'));
} else {
print_error('invalidaction', 'error', 'index.php');
}
Expand Down
4 changes: 2 additions & 2 deletions admin/mnet/profilefields.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@
set_config('host' . $hostid . 'exportdefault', $data->exportdefault, 'mnet');
set_config('host' . $hostid . 'exportfields', implode(',', $data->exportfields), 'mnet');

redirect('/admin/mnet/peers.php', get_string('changessaved'));
redirect(new moodle_url('/admin/mnet/peers.php'), get_string('changessaved'));
} elseif ($form->is_cancelled()) {
redirect('/admin/mnet/peers.php?hostid=' . $hostid);
redirect(new moodle_url('/admin/mnet/peers.php', array('hostid' => $hostid)));
}

admin_externalpage_print_header();
Expand Down
3 changes: 2 additions & 1 deletion mnet/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,8 @@ function mnet_get_app_jumppath ($applicationid) {

function mnet_debug($debugdata, $debuglevel=1) {
global $CFG;
if (empty($CFG->mnet_rpcdebug) || $CFG->mnet_rpcdebug < $debuglevel) {
$setlevel = get_config('', 'mnet_rpcdebug');
if (empty($setlevel) || $setlevel < $debuglevel) {
return;
}
if (is_object($debugdata)) {
Expand Down

0 comments on commit fc36306

Please sign in to comment.