Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-40531 mod_lti: Various 1.1/1.1.1 fixes.

Conflicts:
	mod/lti/service.php
  • Loading branch information...
commit 4673a6a8fc65640b1c92e7661725a6eddf72f4b2 1 parent ce5a85c
@csev csev authored stronk7 committed
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);
Please sign in to comment.
Something went wrong with that request. Please try again.