mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-19801 Migrated calls to print_heading
This commit is contained in:
parent
cdc6222077
commit
f210309674
@ -103,13 +103,13 @@
|
||||
/// Check that the user is not blocking us!!
|
||||
if ($contact = $DB->get_record('message_contacts', array('userid'=>$user->id, 'contactid'=>$USER->id))) {
|
||||
if ($contact->blocked and !has_capability('moodle/site:readallmessages', get_context_instance(CONTEXT_SYSTEM))) {
|
||||
print_heading(get_string('userisblockingyou', 'message'));
|
||||
echo $OUTPUT->heading(get_string('userisblockingyou', 'message'));
|
||||
exit;
|
||||
}
|
||||
}
|
||||
if (get_user_preferences('message_blocknoncontacts', 0, $user->id)) { // User is blocking non-contacts
|
||||
if (empty($contact)) { // We are not a contact!
|
||||
print_heading(get_string('userisblockingyounoncontact', 'message'));
|
||||
echo $OUTPUT->heading(get_string('userisblockingyounoncontact', 'message'));
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
|
||||
<tr>
|
||||
<td colspan="3" class="message_heading"><?php print_heading(get_string('searchforperson', 'message')) ?></td>
|
||||
<td colspan="3" class="message_heading"><?php echo $OUTPUT->heading(get_string('searchforperson', 'message')) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><label for="name"><?php print_string('name') ?></label></td>
|
||||
@ -23,7 +23,7 @@
|
||||
|
||||
|
||||
<tr>
|
||||
<td colspan="3" class="message_heading"><?php print_heading(get_string('searchmessages', 'message')) ?></td>
|
||||
<td colspan="3" class="message_heading"><?php echo $OUTPUT->heading(get_string('searchmessages', 'message')) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><label for="keywords"><?php print_string('keywords', 'message') ?></label></td>
|
||||
|
Loading…
x
Reference in New Issue
Block a user