Skip to content
Snippets Groups Projects
Commit 5c0e92f6 authored by Tobias Reischmann's avatar Tobias Reischmann
Browse files

Support multilang course names throughout the whole plugin.

parent 2425fc83
No related branches found
No related tags found
No related merge requests found
...@@ -101,9 +101,9 @@ class course_backups_table extends \table_sql { ...@@ -101,9 +101,9 @@ class course_backups_table extends \table_sql {
*/ */
public function col_coursefullname($row) { public function col_coursefullname($row) {
try { try {
return \html_writer::link(course_get_url($row->courseid), $row->coursefullname); return \html_writer::link(course_get_url($row->courseid), format_string($row->coursefullname));
} catch (\dml_missing_record_exception $e) { } catch (\dml_missing_record_exception $e) {
return $row->coursefullname; return format_string($row->coursefullname);
} }
} }
......
...@@ -62,7 +62,7 @@ abstract class interaction_table extends \table_sql { ...@@ -62,7 +62,7 @@ abstract class interaction_table extends \table_sql {
* @return string course link * @return string course link
*/ */
public function col_coursefullname($row) { public function col_coursefullname($row) {
$courselink = \html_writer::link(course_get_url($row->courseid), $row->coursefullname); $courselink = \html_writer::link(course_get_url($row->courseid), format_string($row->coursefullname));
return $courselink . '<br><span class="secondary-info">' . $row->courseshortname . '</span>'; return $courselink . '<br><span class="secondary-info">' . $row->courseshortname . '</span>';
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment