Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'wip-MDL-36379-m22' of git://…

…le into MOODLE_22_STABLE
  • Loading branch information...
commit 70a5dda65a4cec7934160a43e86cc6a0ad378bdb 2 parents 3e8532d + d16d476
@danpoltawski danpoltawski authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 user/view.php
10 user/view.php
@@ -148,9 +148,12 @@
+$PAGE->set_title("$course->fullname: $strpersonalprofile: $fullname");
-/// We've established they can see the user's name at least, so what about the rest?
+// Locate the users settings in the settings navigation and force it open.
+// This MUST be done after we've set up the page as it is going to cause theme and output to initialise.
if (!$currentuser) {
if ($node = $PAGE->settingsnav->get('userviewingsettings'.$user->id)) {
@@ -163,9 +166,6 @@
$node->forceopen = false;
-$PAGE->set_title("$course->fullname: $strpersonalprofile: $fullname");
echo $OUTPUT->header();
echo '<div class="userprofile">';
Please sign in to comment.
Something went wrong with that request. Please try again.