MDL-41511 blocks: improved how custom block regions were being rendered.
[moodle.git] / user / profile.php
index 65a2137..e30bc8d 100644 (file)
@@ -437,9 +437,8 @@ if (!empty($CFG->enablebadges)) {
 
 echo html_writer::end_tag('dl');
 echo "</div></div>"; // Closing desriptionbox and userprofilebox.
-echo '<div id="region-content" class="block-region"><div class="region-content">';
-echo $OUTPUT->blocks_for_region('content');
-echo '</div></div>';
+
+echo $OUTPUT->custom_block_region('content');
 
 // Print messaging link if allowed.
 if (isloggedin() && has_capability('moodle/site:sendmessage', $context)