mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Mnet: Update user's enrolment information on jump/land
This commit is contained in:
parent
3de34ccf68
commit
573f8b025c
3 changed files with 112 additions and 6 deletions
|
@ -253,7 +253,7 @@ function mnet_server_fault($code, $text, $param = null) {
|
|||
* @return string $text The XML text of the error message
|
||||
*/
|
||||
function mnet_server_fault_xml($code, $text) {
|
||||
global $MNET_REMOTE_CLIENT;
|
||||
global $MNET_REMOTE_CLIENT, $CFG;
|
||||
// Replace illegal XML chars - is this already in a lib somewhere?
|
||||
$text = str_replace(array('<','>','&','"',"'"), array('<','>','&','"','''), $text);
|
||||
|
||||
|
@ -274,6 +274,12 @@ function mnet_server_fault_xml($code, $text) {
|
|||
</value>
|
||||
</fault>
|
||||
</methodResponse>');
|
||||
|
||||
if (!empty($CFG->mnet_rpcdebug)) {
|
||||
trigger_error("XMLRPC Error Response");
|
||||
trigger_error(print_r($return,1));
|
||||
}
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue