From 8d8d00ef42cc7a02b9be0fdf291fb3b8196c178b Mon Sep 17 00:00:00 2001 From: Ankit Agarwal Date: Tue, 13 Jun 2017 12:38:22 +0530 Subject: [PATCH] MDL-56565 forum: Add sitename as heading when there is nothing to display --- mod/forum/user.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mod/forum/user.php b/mod/forum/user.php index 9b5003b6479..5922e55098a 100644 --- a/mod/forum/user.php +++ b/mod/forum/user.php @@ -219,6 +219,8 @@ if (empty($result->posts)) { $PAGE->set_heading($pageheading); } else if ($canviewuser) { $PAGE->set_heading(fullname($user)); + } else { + $PAGE->set_heading($SITE->fullname); } echo $OUTPUT->header(); if (!$isspecificcourse) {