]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19809 Migrated calls to print_heading
authornicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 08:23:39 +0000 (08:23 +0000)
committernicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 08:23:39 +0000 (08:23 +0000)
mod/glossary/comments.php
mod/glossary/edit.php
mod/glossary/export.php
mod/glossary/formats.php
mod/glossary/import.php
mod/glossary/lib.php
mod/glossary/view.php

index 1019a7f604b4d71f4f3a525ae014c6e5f4f9d33f..1aa16e173684a362cf27937e0036a7afd13d163c 100644 (file)
 
 /// comments
 
-    print_heading(format_string(get_string('commentson','glossary')." <b>\"$entry->concept\"</b>"));
+    echo $OUTPUT->heading(format_string(get_string('commentson','glossary')." <b>\"$entry->concept\"</b>"));
 
     if (has_capability('mod/glossary:comment', $context) and $glossary->allowcomments) {
-        print_heading("<a href=\"comment.php?action=add&amp;entryid=$entry->id\">$straddcomment <img title=\"$straddcomment\" src=\"comment.gif\" class=\"iconsmall\" alt=\"$straddcomment\" /></a>");
+        echo $OUTPUT->heading("<a href=\"comment.php?action=add&amp;entryid=$entry->id\">$straddcomment <img title=\"$straddcomment\" src=\"comment.gif\" class=\"iconsmall\" alt=\"$straddcomment\" /></a>");
     }
 
     if ($comments = $DB->get_records("glossary_comments", array("entryid"=>$entry->id), "timemodified ASC")) {
@@ -65,7 +65,7 @@
             echo '<br />';
         }
     } else {
-        print_heading(get_string("nocomments","glossary"));
+        echo $OUTPUT->heading(get_string("nocomments","glossary"));
     }
 
 
index 3e1406afecf0d5e2de6f3633e53e8e252b186455..ddaa2bb67ea4a2007e52b15bf93c7642fba6d94e 100644 (file)
@@ -169,7 +169,7 @@ $navigation = build_navigation($stredit, $cm);
 print_header_simple(format_string($glossary->name), "", $navigation, "",
               "", true, "", navmenu($course, $cm));
 
-print_heading(format_string($glossary->name));
+echo $OUTPUT->heading(format_string($glossary->name));
 
 $mform->display();
 
index dfe9d5aa1f747cdc30188fbc4ee3615b2324c385..19cc3fde535effdb7c4d03a474826d5e74152dd7 100644 (file)
@@ -42,7 +42,7 @@
         "", "", true, update_module_button($cm->id, $course->id, $strglossary),
         navmenu($course, $cm));
 
-    print_heading($strexportentries);
+    echo $OUTPUT->heading($strexportentries);
 
     print_box_start('glossarydisplay generalbox');
     ?>
index 47fd883e6598a1a453cbfc840c8930b3f5553020..c285abe2a5c05dda5d7118071dcb0501058c4656 100644 (file)
@@ -45,7 +45,7 @@
 
     admin_externalpage_print_header();
 
-    print_heading($strmodulename . ': ' . get_string("displayformats","glossary"));
+    echo $OUTPUT->heading($strmodulename . ': ' . get_string("displayformats","glossary"));
 
     print_simple_box("<center>".get_string("configwarning", 'admin')."</center>", "center", "60%");
     echo "<br />";
index 89a22126ec0152721f6fce2e0cae9768628ce35c..f6353f15ae7e83716c59836c9275b79112326648 100644 (file)
@@ -49,7 +49,7 @@
         "", "", true, update_module_button($cm->id, $course->id, $strglossary),
         navmenu($course, $cm));
 
-    print_heading($strimportentries);
+    echo $OUTPUT->heading($strimportentries);
 
     if ( !$step ) {
         print_box_start('glossarydisplay generalbox');
index fe76348ab4d8313b693489c9d93cbfeb32c6f7cc..6963335fbb93c8aa630ac068d1b78aadbb11ce2b 100644 (file)
@@ -796,9 +796,10 @@ function glossary_print_entry_default ($entry, $glossary, $cm) {
  * @param object $entry
  */
 function  glossary_print_entry_concept($entry) {
+    global $OUTPUT;
     $options = new object();
     $options->para = false;
-    $text = format_text(print_heading('<span class="nolink">' . $entry->concept . '</span>', '', 3, 'nolink', true), FORMAT_MOODLE, $options);
+    $text = format_text($OUTPUT->heading('<span class="nolink">' . $entry->concept . '</span>', 3, 'nolink'), FORMAT_MOODLE, $options);
     if (!empty($entry->highlight)) {
         $text = highlight($entry->highlight, $text);
     }
index e7235be575229d18e6b8d12f9ebfb9806565f3b6..4d3a55dcf359ab0807bfec1ffd76648c05bab860 100644 (file)
         print_header_simple(format_string($glossary->name), "", $navigation, "", "", true,
             update_module_button($cm->id, $course->id, $strglossary), navmenu($course, $cm));
 
-        print_heading($strwaitingapproval);
+        echo $OUTPUT->heading($strwaitingapproval);
     } else { /// Print standard header
         $navigation = build_navigation('', $cm);
         print_header_simple(format_string($glossary->name), "", $navigation, "", "", true,
                         echo '<th >';
                     }
 
-                    print_heading($pivottoshow);
+                    echo $OUTPUT->heading($pivottoshow);
                     echo "</th></tr></table></div>\n";
 
                 }