Permalink
Browse files

MDL-40531 mod_lti: Various 1.1/1.1.1 fixes.

Conflicts:
	mod/lti/service.php
  • Loading branch information...
1 parent d565223 commit 326dc8f5a8de7b3e82a5fdb43d7e3bc889661fa2 @csev csev committed with stronk7 Oct 19, 2013
Showing with 3 additions and 1 deletion.
  1. +1 −1 mod/lti/service.php
  2. +2 −0 mod/lti/servicelib.php
View
2 mod/lti/service.php
@@ -106,7 +106,7 @@
$grade = lti_read_grade($ltiinstance, $parsed->userid);
$responsexml = lti_get_response_xml(
- isset($grade) ? 'success' : 'failure',
+ 'success', // Empty grade is also 'success'
'Result read',
$parsed->messageid,
'readResultResponse'
View
2 mod/lti/servicelib.php
@@ -49,6 +49,8 @@ function lti_get_response_xml($codemajor, $description, $messageref, $messagetyp
$statusinfo->addChild('imsx_severity', 'status');
$statusinfo->addChild('imsx_description', $description);
$statusinfo->addChild('imsx_messageRefIdentifier', $messageref);
+ $incomingtype = str_replace('Response','Request', $messagetype);
+ $statusinfo->addChild('imsx_operationRefIdentifier', $incomingtype);
$xml->addChild('imsx_POXBody')->addChild($messagetype);

0 comments on commit 326dc8f

Please sign in to comment.