MDL-19801 Migrated calls to print_heading

This commit is contained in:
nicolasconnault 2009-08-06 08:25:30 +00:00
parent cdc6222077
commit f210309674
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}
}

View File

@ -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>