Fixed quotes in titles ... well nearly.

This commit is contained in:
moodler 2004-05-24 17:58:46 +00:00
parent 341d554fdb
commit 19f671d373

View File

@ -29,6 +29,7 @@
//Exclude labels and hidden items
if ($activity->mod != "label" && $activity->visible) {
$title = strip_tags(urldecode($activity->name));
$title = str_replace('"', "'", $title);
$href_tag_begin = "<a class=\"autolink\" title=\"$title\" href=\"$CFG->wwwroot/mod/$activity->mod/view.php?id=$activity->cm\">";
$currentname = urldecode($activity->name);
if ($currentname = trim($currentname)) {