mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
Fixed quotes in titles ... well nearly.
This commit is contained in:
parent
341d554fdb
commit
19f671d373
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user