MDL-45119 ajax: AJAX exceptions need a String in the Link

This commit is contained in:
Andrew Nicols
2014-04-17 11:48:57 +08:00
parent 1a5748b258
commit ab38ff96e5
+4 -1
View File
@@ -3502,7 +3502,10 @@ class core_renderer_ajax extends core_renderer {
$e->debuginfo = NULL;
$e->reproductionlink = NULL;
if (!empty($CFG->debug) and $CFG->debug >= DEBUG_DEVELOPER) {
$e->reproductionlink = $link;
$link = (string) $link;
if ($link) {
$e->reproductionlink = $link;
}
if (!empty($debuginfo)) {
$e->debuginfo = $debuginfo;
}