Commit b090cf71 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Escape group name in 'view submitted to...' on my views page


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 3ba5b1f5
......@@ -2141,14 +2141,18 @@ class View {
$data[$i]['description'] = $viewdata[$i]->description;
if (!empty($viewdata[$i]->submitgroupid)) {
if (!empty($viewdata[$i]->submittedtime)) {
$data[$i]['submittedto'] = get_string('viewsubmittedtogroupon', 'view',
get_config('wwwroot') . 'group/view.php?id=' . $viewdata[$i]->submitgroupid,
$viewdata[$i]->submitgroupname, format_date(strtotime($viewdata[$i]->submittedtime)));
$data[$i]['submittedto'] = get_string(
'viewsubmittedtogroupon', 'view',
get_config('wwwroot') . 'group/view.php?id=' . $viewdata[$i]->submitgroupid,
hsc($viewdata[$i]->submitgroupname), format_date(strtotime($viewdata[$i]->submittedtime))
);
}
else {
$data[$i]['submittedto'] = get_string('viewsubmittedtogroup', 'view',
get_config('wwwroot') . 'group/view.php?id=' . $viewdata[$i]->submitgroupid,
$viewdata[$i]->submitgroupname);
$data[$i]['submittedto'] = get_string(
'viewsubmittedtogroup', 'view',
get_config('wwwroot') . 'group/view.php?id=' . $viewdata[$i]->submitgroupid,
hsc($viewdata[$i]->submitgroupname)
);
}
}
else if (!empty($viewdata[$i]->submithostwwwroot)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment