mod/url/locallib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/url/locallib.php b/mod/url/locallib.php index 7d9bba291..128db0207 100644 --- a/mod/url/locallib.php +++ b/mod/url/locallib.php @@ -460,18 +460,18 @@ function url_get_variable_values($url, $cm, $course, $config) { $values = array ( 'courseid' => $course->id, - 'coursefullname' => format_string($course->fullname), + 'coursefullname' => format_string($course->fullname, true, array('context' => $coursecontext)), 'courseshortname' => format_string($course->shortname, true, array('context' => $coursecontext)), 'courseidnumber' => $course->idnumber, 'coursesummary' => $course->summary, 'courseformat' => $course->format, 'lang' => current_language(), - 'sitename' => format_string($site->fullname), + 'sitename' => format_string($site->fullname, true, array('context' => $coursecontext)), 'serverurl' => $CFG->wwwroot, 'currenttime' => time(), 'urlinstance' => $url->id, 'urlcmid' => $cm->id, - 'urlname' => format_string($url->name), + 'urlname' => format_string($url->name, true, array('context' => $coursecontext)), 'urlidnumber' => $cm->idnumber, );