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:
Adrian Greeve
2015-04-10 17:17:07 +08:00
parent 880c50731f
commit e026cc9253
+2 -2
View File
@@ -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);