MDL-48930 navigation: Update to forum page headers.
The forum posts and discussion headers have been updated to use the course full name instead of the short name to match other pages. Part of MDL-45774.
This commit is contained in:
+2
-2
@@ -163,7 +163,7 @@ if (empty($result->posts)) {
|
||||
|
||||
// Get the page heading
|
||||
if ($isspecificcourse) {
|
||||
$pageheading = format_string($course->shortname, true, array('context' => $coursecontext));
|
||||
$pageheading = format_string($course->fullname, true, array('context' => $coursecontext));
|
||||
} else {
|
||||
$pageheading = get_string('pluginname', 'mod_forum');
|
||||
}
|
||||
@@ -313,7 +313,7 @@ if ($discussionsonly) {
|
||||
if ($isspecificcourse) {
|
||||
$a = new stdClass;
|
||||
$a->fullname = $userfullname;
|
||||
$a->coursename = format_string($course->shortname, true, array('context' => $coursecontext));
|
||||
$a->coursename = format_string($course->fullname, true, array('context' => $coursecontext));
|
||||
$pageheading = $a->coursename;
|
||||
if ($discussionsonly) {
|
||||
$pagetitle = get_string('discussionsstartedbyuserincourse', 'mod_forum', $a);
|
||||
|
||||
Reference in New Issue
Block a user