MDL-50653 user: forgotten closing div tag on the page
authorBas Brands <bas@sonsbeekmedia.nl>
Wed, 24 Jun 2015 06:36:52 +0000 (08:36 +0200)
committerBas Brands <bas@sonsbeekmedia.nl>
Wed, 24 Jun 2015 06:36:52 +0000 (08:36 +0200)
The /user/view.php was missing a closing div for the <div class="description">
causing the page grid to break on any Bootstrap 3 based theme.

user/view.php

index f705db6..80711c7 100644 (file)
@@ -207,8 +207,8 @@ if ($user->deleted) {
 // Trigger a user profile viewed event.
 profile_view($user, $coursecontext, $course);
 
-echo '<div class="description">';
 if ($user->description && !isset($hiddenfields['description'])) {
+    echo '<div class="description">';
     if (!empty($CFG->profilesforenrolledusersonly) && !$DB->record_exists('role_assignments', array('userid' => $id))) {
         echo get_string('profilenotshown', 'moodle');
     } else {
@@ -221,6 +221,7 @@ if ($user->description && !isset($hiddenfields['description'])) {
         $options = array('overflowdiv' => true);
         echo format_text($user->description, $user->descriptionformat, $options);
     }
+    echo '</div>'; // Description class.
 }
 
 // Render custom blocks.