Merge branch 'MDL-54027-master' of git://github.com/FMCorz/moodle

This commit is contained in:
Dan Poltawski 2016-05-18 11:05:06 +01:00
commit 53b540c82a

View File

@ -389,9 +389,19 @@ if (isset($courseid) && $courseid != SITEID) {
}
echo $OUTPUT->header();
echo $OUTPUT->heading($inpageheading);
echo html_writer::start_tag('div', array('class' => 'user-content'));
if ($isspecificcourse) {
$userheading = array(
'heading' => fullname($user),
'user' => $user,
'usercontext' => $usercontext
);
echo $OUTPUT->context_header($userheading, 2);
} else {
echo $OUTPUT->heading($inpageheading);
}
if (!empty($postoutput)) {
echo $OUTPUT->paging_bar($result->totalcount, $page, $perpage, $url);
foreach ($postoutput as $post) {