Skip to content

Commit

Permalink
MDL-20695 print_error() now loges probems too, no need to use trigger…
Browse files Browse the repository at this point in the history
…_error() separately
  • Loading branch information
skodak committed Oct 31, 2009
1 parent 6e03bed commit 4daa791
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions admin/mnet/peers.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
}

if(!function_exists('xmlrpc_encode_request')) {
trigger_error("You must have xml-rpc enabled in your PHP build to use this feature.");
print_error('xmlrpc-missing', 'mnet','peers.php');
exit;
}
Expand All @@ -81,7 +80,6 @@
// PARAM_URL requires a genuine TLD (I think) This breaks my testing
$temp_wwwroot = clean_param($form->wwwroot, PARAM_URL);
if ($temp_wwwroot !== $form->wwwroot) {
trigger_error("We now parse the wwwroot with PARAM_URL. Your URL will need to have a valid TLD, etc.");
print_error('invalidurl', 'mnet', 'peers.php');
exit;
}
Expand Down

0 comments on commit 4daa791

Please sign in to comment.