]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19801 Migrated calls to print_heading
authornicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 08:25:30 +0000 (08:25 +0000)
committernicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 08:25:30 +0000 (08:25 +0000)
message/discussion.php
message/search.html

index 1dd60c35a079994faa275f2f2d0d21b8672af3ff..82b3c4f8f049416223e03ae96b01834a4397b8bd 100644 (file)
 /// 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;
         }
     }
index 74c5fcf3fe43ec532e493f22d2c4afe16feb3dd1..ff6cad9890ed59e0a0fc4788ec05c97db1f6b2b5 100644 (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>