Browse files

Merge branch 'wip-MDL-36379-m23' of git://github.com/samhemelryk/mood…

…le into MOODLE_23_STABLE
  • Loading branch information...
2 parents 485ddbd + e3ac126 commit 2dab9d1943bdfa322ccbcc4878f7e7bb606bcf89 @danpoltawski danpoltawski committed Nov 6, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 user/view.php
View
10 user/view.php
@@ -148,9 +148,12 @@
}
}
+$PAGE->set_title("$course->fullname: $strpersonalprofile: $fullname");
+$PAGE->set_heading($course->fullname);
+$PAGE->set_pagelayout('standard');
-/// 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) {
$PAGE->navigation->extend_for_user($user);
if ($node = $PAGE->settingsnav->get('userviewingsettings'.$user->id)) {
@@ -163,9 +166,6 @@
$node->forceopen = false;
}
-$PAGE->set_title("$course->fullname: $strpersonalprofile: $fullname");
-$PAGE->set_heading($course->fullname);
-$PAGE->set_pagelayout('standard');
echo $OUTPUT->header();
echo '<div class="userprofile">';

0 comments on commit 2dab9d1

Please sign in to comment.