]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-20695 print_error() now loges probems too, no need to use trigger_error() separately
authorPetr Skoda <skodak@moodle.org>
Sat, 31 Oct 2009 22:47:34 +0000 (22:47 +0000)
committerPetr Skoda <skodak@moodle.org>
Sat, 31 Oct 2009 22:47:34 +0000 (22:47 +0000)
admin/mnet/peers.php

index 3bedb84ce0dba014bc013f27e49910aa3f621f2e..4b8b86cf543e9e5a12008ed552a3041ebeaa8a1b 100644 (file)
@@ -58,7 +58,6 @@ if (($form = data_submitted()) && confirm_sesskey()) {
     }
 
     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;
     }
@@ -81,7 +80,6 @@ if (($form = data_submitted()) && confirm_sesskey()) {
             // 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;
             }