MDL-56565 forum: Add sitename as heading when there is nothing to display

This commit is contained in:
Ankit Agarwal 2017-06-13 12:38:22 +05:30 committed by Mr. Jenkins (CiBoT)
parent 73d78820c8
commit 8d8d00ef42

View File

@ -219,6 +219,8 @@ if (empty($result->posts)) {
$PAGE->set_heading($pageheading); $PAGE->set_heading($pageheading);
} else if ($canviewuser) { } else if ($canviewuser) {
$PAGE->set_heading(fullname($user)); $PAGE->set_heading(fullname($user));
} else {
$PAGE->set_heading($SITE->fullname);
} }
echo $OUTPUT->header(); echo $OUTPUT->header();
if (!$isspecificcourse) { if (!$isspecificcourse) {