Commit a8e2ad5b authored by Nigel McNie's avatar Nigel McNie

Moodle's XMLRPC API currently makes some calls that Mahara doesn't implement....

Moodle's XMLRPC API currently makes some calls that Mahara doesn't implement. Implement these calls as no-ops.
parent 69b567f4
......@@ -47,7 +47,10 @@ class Dispatcher {
'sso_in' => array(),
'sso_out' =>array(
'auth/mnet/auth.php/user_authorise' => 'user_authorise',
'auth/mnet/auth.php/fetch_user_image' => 'fetch_user_image'
'auth/mnet/auth.php/fetch_user_image' => 'fetch_user_image',
'auth/mnet/auth.php/update_enrolments' => 'xmlrpc_not_implemented',
'auth/mnet/auth.php/keepalive_server' => 'xmlrpc_not_implemented',
'auth/mnet/auth.php/kill_children' => 'xmlrpc_not_implemented',
)
);
......@@ -136,7 +139,7 @@ class Dispatcher {
}
}
throw new XmlrpcServerException('No such method');
throw new XmlrpcServerException('No such method: ' . $this->method);
}
......
......@@ -260,6 +260,10 @@ function user_authorise($token, $useragent) {
return $userdata;
}
function xmlrpc_not_implemented() {
return true;
}
/**
* Given a USER, get all Service Providers for that User, based on child auth
* instances of its canonical auth instance
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment