MDL-36224: Minor updates to LTI

* No debug display on service.php
* Send a 400 header on error
This commit is contained in:
Mark Nielsen 2012-11-27 09:26:01 -08:00 committed by Damyon Wiese
parent fdbf2f229c
commit 4d7a2c9e1c
2 changed files with 4 additions and 0 deletions

View File

@ -24,6 +24,8 @@
* @author Chris Scribner
*/
define('NO_DEBUG_DISPLAY', true);
require_once(dirname(__FILE__) . "/../../config.php");
require_once($CFG->dirroot.'/mod/lti/locallib.php');
require_once($CFG->dirroot.'/mod/lti/servicelib.php');

View File

@ -252,6 +252,8 @@ function lti_extend_lti_services($data) {
$data->messageid,
$data->messagetype
);
header('HTTP/1.0 400 bad request');
echo $responsexml->asXML();
}
return true;