1
0
mirror of https://github.com/moodle/moodle.git synced 2025-05-15 12:45:41 +02:00

MNET: Check that xml-rpc is installed: #MDL-8731 #MDL-8846

This commit is contained in:
donal72 2007-03-12 02:31:50 +00:00
parent 8308419e76
commit 76691858b2
2 changed files with 8 additions and 0 deletions
admin/mnet
lang/en_utf8

@ -51,6 +51,13 @@ if (($form = data_submitted()) && confirm_sesskey()) {
// ensure we remove trailing slashes
$form->wwwroot = preg_replace(':/$:', '', $form->wwwroot);
}
if(!function_exists('xmlrpc_encode_request')) {
trigger_error("You must have xml-rpc enabled in your PHP build to use this feature.");
error(get_string('xmlrpc-missing', 'mnet'),'peers.php');
exit;
}
if (!empty($form->updateregisterall)) {
if (!empty($form->registerallhosts)) {
set_config('mnet_register_allhosts',1);

@ -1,4 +1,5 @@
<?PHP
$string['xmlrpc-missing'] = 'You must have XML-RPC installed in your PHP build to be able to use this feature.';
$string['description'] = 'Description';
$string['mnet'] = 'Moodle Networking';
$string['net'] = 'Networking';