Skip to content

Commit

Permalink
MDL-40531 mod_lti: Changed namespace in XML to IMS LTI compliant
Browse files Browse the repository at this point in the history
  • Loading branch information
samchaffee authored and stronk7 committed Oct 19, 2013
1 parent 1115bb3 commit d565223
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mod/lti/servicelib.php
Expand Up @@ -37,7 +37,7 @@

function lti_get_response_xml($codemajor, $description, $messageref, $messagetype) {
$xml = new SimpleXMLElement('<?xml version="1.0" encoding="UTF-8"?><imsx_POXEnvelopeResponse />');
$xml->addAttribute('xmlns', 'http://www.imsglobal.org/lis/oms1p0/pox');
$xml->addAttribute('xmlns', 'http://www.imsglobal.org/services/ltiv1p1/xsd/imsoms_v1p0');

$headerinfo = $xml->addChild('imsx_POXHeader')->addChild('imsx_POXResponseHeaderInfo');

Expand Down
2 changes: 1 addition & 1 deletion mod/lti/tests/locallib_test.php
Expand Up @@ -104,7 +104,7 @@ public function disabled_test_sign_parameters() {
*/
public function disabled_test_parse_grade_replace_message() {
$message = '
<imsx_POXEnvelopeRequest xmlns = "http://www.imsglobal.org/lis/oms1p0/pox">
<imsx_POXEnvelopeRequest xmlns = "http://www.imsglobal.org/services/ltiv1p1/xsd/imsoms_v1p0">
<imsx_POXHeader>
<imsx_POXRequestHeaderInfo>
<imsx_version>V1.0</imsx_version>
Expand Down

0 comments on commit d565223

Please sign in to comment.