fix for MDL-8582, adding s() to course_list block

This commit is contained in:
toyomoyo
2007-02-23 05:44:36 +00:00
parent 8aee86e196
commit a65d282818
+1 -1
View File
@@ -77,7 +77,7 @@ class block_course_list extends block_list {
if ($courses) {
foreach ($courses as $course) {
$linkcss = $course->visible ? "" : " class=\"dimmed\" ";
$this->content->items[]="<a $linkcss title=\"$course->shortname\" ".
$this->content->items[]="<a $linkcss title=\"".s($course->shortname)."\" ".
"href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->fullname</a>";
$this->content->icons[]=$icon;
}