Skip to content
Snippets Groups Projects
Commit e51aa220 authored by Peter Fricke's avatar Peter Fricke
Browse files

updated version and fixed utf8 encoding

parent 7508ac11
No related branches found
No related tags found
No related merge requests found
......@@ -45,5 +45,16 @@ if (!empty($course)) {
$courses->close();
}
}
header('Content-Type: application/json');
echo json_encode($output);
header('Content-Type: text/plain');
echo json_encode(utf8ize($output));
function utf8ize($d) {
if (is_array($d)) {
foreach ($d as $k => $v) {
$d[$k] = utf8ize($v);
}
} else if (is_string ($d)) {
return utf8_encode($d);
}
return $d;
}
\ No newline at end of file
......@@ -25,5 +25,5 @@
$plugin->component = 'block_hshcourselist';
$plugin->version = 2019041001; // YYYYMMDDHH.
$plugin->version = 2019082301; // YYYYMMDDHH.
$plugin->requires = 2016112900; // YYYYMMDDHH.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment