From: donal Date: Tue, 12 Feb 2008 22:27:47 +0000 (+0000) Subject: MDL-12492: This patch addresses a problem which prevents hosts from re-keying when... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ab855aaacc1f9a51bb42bcb17d85b96060136178;p=moodle.git MDL-12492: This patch addresses a problem which prevents hosts from re-keying when their keys expire. --- diff --git a/mnet/remote_client.php b/mnet/remote_client.php index 991ad5c541..0cfd06df70 100644 --- a/mnet/remote_client.php +++ b/mnet/remote_client.php @@ -48,7 +48,9 @@ class mnet_remote_client extends mnet_peer { } function refresh_key() { + global $CFG; // set up an RPC request + require_once $CFG->dirroot.'/mnet/xmlrpc/client.php'; $mnetrequest = new mnet_xmlrpc_client(); // Use any method - listServices is pretty lightweight. $mnetrequest->set_method('system/listServices');