]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19787 Migrated calls to print_heading
authornicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 08:17:12 +0000 (08:17 +0000)
committernicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 08:17:12 +0000 (08:17 +0000)
51 files changed:
admin/auth_config.php
admin/block.php
admin/blocks.php
admin/dbtransfer/index.php
admin/delete.php
admin/enrol.php
admin/enrol_config.php
admin/environment.php
admin/filters.php
admin/generator.php
admin/health.php
admin/index.php
admin/innodb.php
admin/lang.php
admin/mnet/access_control.php
admin/mnet/delete.html
admin/mnet/mnet_themes.html
admin/modules.php
admin/multilangupgrade.php
admin/oacleanup.php
admin/portfolio.php
admin/qtypes.php
admin/register.php
admin/replace.php
admin/report/backups/index.php
admin/report/capability/index.php
admin/report/configlog/index.php
admin/report/courseoverview/index.php
admin/report/questioninstances/index.php
admin/report/security/index.php
admin/report/unittest/dbtest.php
admin/report/unittest/index.php
admin/repository.php
admin/repositoryinstance.php
admin/roles/assign.php
admin/roles/check.php
admin/roles/explain.php
admin/roles/override.php
admin/roles/usersroles.php
admin/settings.php
admin/timezone.php
admin/timezoneimport.php
admin/uploaduser.php
admin/user.php
admin/user/user_bulk_confirm.php
admin/user/user_bulk_delete.php
admin/user/user_bulk_display.php
admin/user/user_bulk_download.php
admin/user/user_bulk_enrol.php
admin/user/user_bulk_message.php
admin/xmldb/index.php

index 4b2e9d880ab8c820d90705642119ab8185f42a6f..d89332a905596e0c8a9cc87c9c15b126278ec237 100644 (file)
@@ -65,7 +65,7 @@ echo "<input type=\"hidden\" name=\"auth\" value=\"".$auth."\" />\n";
 
 // auth plugin description
 print_simple_box_start('center', '80%');
-print_heading($authtitle);
+echo $OUTPUT->heading($authtitle);
 print_simple_box_start('center', '80%', '', 5, 'informationbox');
 echo $authdescription;
 print_simple_box_end();
@@ -89,9 +89,9 @@ function print_auth_lock_options ($auth, $user_fields, $helptext, $retrieveopts,
 
     echo '<tr><td colspan="3">';
     if ($retrieveopts) {
-        print_heading(get_string('auth_data_mapping', 'auth'));
+        echo $OUTPUT->heading(get_string('auth_data_mapping', 'auth'));
     } else {
-        print_heading(get_string('auth_fieldlocks', 'auth'));
+        echo $OUTPUT->heading(get_string('auth_fieldlocks', 'auth'));
     }
     echo '</td></tr>';
 
index b85efe83a520a5318792e46e7ce6b55c103294b0..fdf3d91839fab054ee22b85c955cebc171138b45 100644 (file)
@@ -51,7 +51,7 @@
 
     admin_externalpage_print_header();
 
-    print_heading($strblockname);
+    echo $OUTPUT->heading($strblockname);
 
     notify('This block still uses an old-style config_global.html file. ' .
             'It must be updated by a developer to use a settings.php file.');
index 7bb19c24a0533ea2b3d63fe7ce7016527340cfcc..2764b6b6e46480c272e52fa760ff58d2f9b677fb 100644 (file)
@@ -45,7 +45,7 @@
 
     if (!empty($delete) && confirm_sesskey()) {
         admin_externalpage_print_header();
-        print_heading($strmanageblocks);
+        echo $OUTPUT->heading($strmanageblocks);
 
         if (!$block = blocks_get_record($delete)) {
             print_error('blockdoesnotexist', 'error');
@@ -99,7 +99,7 @@
     }
 
     admin_externalpage_print_header();
-    print_heading($strmanageblocks);
+    echo $OUTPUT->heading($strmanageblocks);
 
 /// Main display starts here
 
     $table->print_html();
 
     if(!empty($incompatible)) {
-        print_heading(get_string('incompatibleblocks', 'admin'));
+        echo $OUTPUT->heading(get_string('incompatibleblocks', 'admin'));
 
         $table = new flexible_table('admin-blocks-incompatible');
 
index 0ee0489e1de12f0a6dc4243e292664ebc1609a50..b9c5aefb2cad978fbf8d2f1ee508df6f3cd401e1 100644 (file)
@@ -25,7 +25,7 @@ if ($data = $form->get_data()) {
     // Start output.
     admin_externalpage_print_header();
     $data->dbtype = $dbtype;
-    print_heading(get_string('transferringdbto', 'dbtransfer', $data));
+    echo $OUTPUT->heading(get_string('transferringdbto', 'dbtransfer', $data));
 
     // Do the transfer.
     $feedback = new html_list_progress_trace();
@@ -41,7 +41,7 @@ if ($data = $form->get_data()) {
 
 // Otherwise display the settings form.
 admin_externalpage_print_header();
-print_heading(get_string('transferdbtoserver', 'dbtransfer'));
+echo $OUTPUT->heading(get_string('transferdbtoserver', 'dbtransfer'));
 echo '<p>', get_string('transferdbintro', 'dbtransfer'), "</p>\n\n";
 $form->display();
 admin_externalpage_print_footer();
index 55f52c8e09dd6b9625999abf704c89bbde5c1f0a..401ca757e9bb8cc5c12326c1e35a050cb99a469c 100644 (file)
@@ -18,7 +18,7 @@
     $deletedir = $CFG->dataroot;   // The directory to delete!
 
     admin_externalpage_print_header();
-    print_heading('Purge moodledata');
+    echo $OUTPUT->heading('Purge moodledata');
 
     if (empty($sure)) {
         $optionsyes = array('sure'=>'yes', 'sesskey'=>sesskey());
index 5e68bd10566a036538a9a45a69bb7e32036e8d0e..774471a792640c45209a414867adc5cd1a8ef0d8 100644 (file)
 
     echo '<form '.$CFG->frametarget.' id="adminsettings" method="post" action="enrol.php">';
     echo '<div class="settingsform clearfix">';
-    print_heading(get_string('commonsettings', 'admin'));
+    echo $OUTPUT->heading(get_string('commonsettings', 'admin'));
     echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
     echo '<input type="hidden" name="savesettings" value="1" />';
     echo '<fieldset>';
index 95990d454f46185d791a603d28c6dec790bb72b2..3b0f1d1577b7095ae13be0a79eb72b59446cb73f 100644 (file)
@@ -49,7 +49,7 @@
 
 /// Print current enrolment type description
     print_simple_box_start("center", "80%");
-    print_heading($options[$enrol]);
+    echo $OUTPUT->heading($options[$enrol]);
 
     print_simple_box_start("center", "60%", '', 5, 'informationbox');
     print_string("description", "enrol_$enrol");
index 8acd278680736e0bc02f6eccf9b089743218618d..11f2e42739d7814f214cb36855eecaf39e49dced 100644 (file)
@@ -57,7 +57,7 @@
 /// Print the component download link
     echo '<div class="reportlink"><a href="environment.php?action=updatecomponent&amp;sesskey='.sesskey().'">'.$strupdate.'</a></div>';
 
-    print_heading($strenvironment);
+    echo $OUTPUT->heading($strenvironment);
 
 /// Handle the 'updatecomponent' action
     if ($action == 'updatecomponent' && confirm_sesskey()) {
index e27990eb7af07c4b4db530eece77ec159e8e43c3..2fe451849540d4c08bb548b1e935dba44eec3cb5 100644 (file)
         if (!optional_param('confirm', '', PARAM_BOOL)) {
             $title = get_string('deletefilterareyousure', 'admin', $filtername);
             admin_externalpage_print_header();
-            print_heading($title);
+            echo $OUTPUT->heading($title);
             notice_yesno(get_string('deletefilterareyousuremessage', 'admin', $filtername), $returnurl .
                     '?action=delete&amp;filterpath=' . $filterpath . '&amp;confirm=1&amp;sesskey=' . sesskey(),
                     $returnurl, NULL, NULL, 'post', 'get');
         // Do the deletion.
         $title = get_string('deletingfilter', 'admin', $filtername);
         admin_externalpage_print_header();
-        print_heading($title);
+        echo $OUTPUT->heading($title);
 
         // Delete all data for this plugin.
         filter_delete_all_for_filter($filterpath);
 
 /// Print the page heading.
     admin_externalpage_print_header();
-    print_heading(get_string('filtersettings', 'admin'));
+    echo $OUTPUT->heading(get_string('filtersettings', 'admin'));
 
     $activechoices = array(
         TEXTFILTER_DISABLED => get_string('disabled', 'filters'),
index 5447148fd81918947aecb80f5be7a4c52a7de920..ef612cbe2cab54715237c93f261e36b8db3cd000 100755 (executable)
@@ -1198,10 +1198,11 @@ class generator_web extends generator {
     }
 
     public function display() {
+        global $OUTPUT;
         print_header("Data generator");
-        print_heading("Data generator: web interface");
-        print_heading("FOR DEVELOPMENT PURPOSES ONLY. DO NOT USE ON A PRODUCTION SITE!", '', 3);
-        print_heading("Your database contents will probably be massacred. You have been warned", '', 5);
+        echo $OUTPUT->heading("Data generator: web interface");
+        echo $OUTPUT->heading("FOR DEVELOPMENT PURPOSES ONLY. DO NOT USE ON A PRODUCTION SITE!", 3);
+        echo $OUTPUT->heading("Your database contents will probably be massacred. You have been warned", 5);
 
 
         $systemcontext = get_context_instance(CONTEXT_SYSTEM);
index b68fa467059d867fcda85b5c42aa5a6c826ba1f3..af9e82a4967b4e58b4324becaf4d8bf2564cabd9 100644 (file)
@@ -105,7 +105,7 @@ STYLES;
 
 function health_find_problems() {
 
-    print_heading(get_string('healthcenter'));
+    echo $OUTPUT->heading(get_string('healthcenter'));
 
     $issues   = array(
         SEVERITY_CRITICAL    => array(),
@@ -139,7 +139,7 @@ function health_find_problems() {
         echo '</div>';
     }
     else {
-        print_heading(get_string('healthproblemsdetected'));
+        echo $OUTPUT->heading(get_string('healthproblemsdetected'));
         $severities = array(SEVERITY_CRITICAL, SEVERITY_SIGNIFICANT, SEVERITY_ANNOYANCE, SEVERITY_NOTICE);
         foreach($severities as $severity) {
             if(!empty($issues[$severity])) {
@@ -158,6 +158,7 @@ function health_find_problems() {
 }
 
 function health_print_solution($classname) {
+    global $OUTPUT;
     $problem = new $classname;
     $data = array(
         'title'       => $problem->title(),
@@ -166,8 +167,8 @@ function health_print_solution($classname) {
         'solution'    => $problem->solution()
     );
 
-    print_heading(get_string('healthcenter'));
-    print_heading(get_string('healthproblemsolution'));
+    echo $OUTPUT->heading(get_string('healthcenter'));
+    echo $OUTPUT->heading(get_string('healthproblemsolution'));
     echo '<dl class="healthissues '.$data['severity'].'">';
     echo '<dt>'.$data['title'].'</dt>';
     echo '<dd>'.$data['description'].'</dd>';
index de39048f05221f48f3bd73dbf3c9ccacb67ae914..b1e7043538e37884e413419b8440ac1b5d2e5a9f 100644 (file)
@@ -121,8 +121,8 @@ if (!core_tables_exist()) {
         $strlicense = get_string('license');
         $navigation = build_navigation(array(array('name'=>$strlicense, 'link'=>null, 'type'=>'misc')));
         print_header($strinstallation.' - Moodle '.$CFG->target_release, $strinstallation, $navigation, '', '', false, '&nbsp;', '&nbsp;');
-        print_heading('<a href="http://moodle.org">Moodle</a> - Modular Object-Oriented Dynamic Learning Environment');
-        print_heading(get_string('copyrightnotice'));
+        echo $OUTPUT->heading('<a href="http://moodle.org">Moodle</a> - Modular Object-Oriented Dynamic Learning Environment');
+        echo $OUTPUT->heading(get_string('copyrightnotice'));
         $copyrightnotice = text_to_html(get_string('gpl'));
         $copyrightnotice = str_replace('target="_blank"', 'onclick="this.target=\'_blank\'"', $copyrightnotice); // extremely ugly validation hack
         print_box($copyrightnotice, 'copyrightnotice');
@@ -136,7 +136,7 @@ if (!core_tables_exist()) {
         $strcurrentrelease = get_string('currentrelease');
         $navigation = build_navigation(array(array('name'=>$strcurrentrelease, 'link'=>null, 'type'=>'misc')));
         print_header($strinstallation.' - Moodle '.$CFG->target_release, $strinstallation, $navigation, '', '', false, '&nbsp;', '&nbsp;');
-        print_heading("Moodle $release");
+        echo $OUTPUT->heading("Moodle $release");
         $releasenoteslink = get_string('releasenoteslink', 'admin', 'http://docs.moodle.org/en/Release_Notes');
         $releasenoteslink = str_replace('target="_blank"', 'onclick="this.target=\'_blank\'"', $releasenoteslink); // extremely ugly validation hack
         print_box($releasenoteslink, 'generalbox boxaligncenter boxwidthwide');
@@ -200,7 +200,7 @@ if ($version > $CFG->version) {  // upgrade
         $strcurrentrelease = get_string('currentrelease');
         $navigation = build_navigation(array(array('name'=>$strcurrentrelease, 'link'=>null, 'type'=>'misc')));
         print_header($strcurrentrelease, $strcurrentrelease, $navigation, '', '', false, '&nbsp;', '&nbsp;');
-        print_heading("Moodle $release");
+        echo $OUTPUT->heading("Moodle $release");
         $releasenoteslink = get_string('releasenoteslink', 'admin', 'http://docs.moodle.org/en/Release_Notes');
         $releasenoteslink = str_replace('target="_blank"', 'onclick="this.target=\'_blank\'"', $releasenoteslink); // extremely ugly validation hack
         print_box($releasenoteslink);
@@ -225,7 +225,7 @@ if ($version > $CFG->version) {  // upgrade
         $strplugincheck = get_string('plugincheck');
         $navigation = build_navigation(array(array('name'=>$strplugincheck, 'link'=>null, 'type'=>'misc')));
         print_header($strplugincheck, $strplugincheck, $navigation, '', '', false, '&nbsp;', '&nbsp;');
-        print_heading($strplugincheck);
+        echo $OUTPUT->heading($strplugincheck);
         print_box_start('generalbox', 'notice');
         print_string('pluginchecknotice');
         print_box_end();
index 98e7991e295f6d88d418f05fa8fad745a6caf61f..6f6f9c0930c56f51773864bcae56ea0bb4a5f334 100644 (file)
@@ -12,7 +12,7 @@
     require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
 
     admin_externalpage_print_header();
-    print_heading('Convert all MySQL tables from MYISAM to InnoDB');
+    echo $OUTPUT->heading('Convert all MySQL tables from MYISAM to InnoDB');
 
     if ($DB->get_dbfamily() != 'mysql') {
         notice('This function is for MySQL databases only!', 'index.php');
index c6142f6601e66250a9f2c3128517394ef7920bb2..db5b9724ffdb059e2725359f0e345a428ef52f7a 100644 (file)
 
         if ($totalcounter->missing > 0) {
             $totalcounter->missingpercent = sprintf('%02.1f', ($totalcounter->missing / $totalcounter->strings * 100));
-            print_heading(get_string('numberofstrings', 'admin', $totalcounter), '', 4);
+            echo $OUTPUT->heading(get_string('numberofstrings', 'admin', $totalcounter), 4);
         } else {
-            print_heading($strnomissingstrings, '', 4, 'notifysuccess');
+            echo $OUTPUT->heading($strnomissingstrings, 4, 'notifysuccess');
         }
 
         if ($m <> '') {
             if (!isset($editable) || $editable) {
                 if (!file_exists("$saveto/$currentfile")) {
                     if (!@touch("$saveto/$currentfile")) {
-                        print_heading(get_string("filemissing", "", "$saveto/$currentfile"), '', 4, 'error');
+                        echo $OUTPUT->heading(get_string("filemissing", "", "$saveto/$currentfile"), 4, 'error');
                     } else {
-                        print_heading($strfilecreated, '', 4, 'notifysuccess');
+                        echo $OUTPUT->heading($strfilecreated, 4, 'notifysuccess');
                     }
                 }
                 if ($currentlang == "en_utf8" && !$uselocal) {
                     $editable = false;
-                    print_heading($streditennotallowed, '', 4);
+                    echo $OUTPUT->heading($streditennotallowed, 4);
                 } elseif ($f = fopen("$saveto/$currentfile","r+")) {
                     $editable = true;
                     fclose($f);
 
             if (LANG_DISPLAY_MISSING_LINKS) {
                 if ($missingcounter > 0) {
-                    print_heading(get_string('numberofmissingstrings', 'admin', $missingcounter), '', 4);
+                    echo $OUTPUT->heading(get_string('numberofmissingstrings', 'admin', $missingcounter), 4);
                     if ($editable) {
-                        print_heading('<a href="#missing1">'.$strgotofirst.'</a>', "", 4);
+                        echo $OUTPUT->heading('<a href="#missing1">'.$strgotofirst.'</a>', 4);
                     }
                 } else {
-                    print_heading($strnomissingstrings, '', 4, 'notifysuccess');
+                    echo $OUTPUT->heading($strnomissingstrings, 4, 'notifysuccess');
                 }
             }
             echo $o;
 
         if (false && $CFG->debugdisplay && debugging('', DEBUG_DEVELOPER) ) {
             echo '<hr />';
-            print_heading('Debugging info');
+            echo $OUTPUT->heading('Debugging info');
             echo '<pre class="notifytiny">';
             print_r($dbg);
             print_r("\n\$currentfile = $currentfile");
index 2b8a8e08e2d63a42f0178a64be48dc6561375e38..ef43d196d532ca8bd60a3ab54732b93ef0d9c214 100644 (file)
@@ -160,7 +160,7 @@ $acl = $DB->get_records('mnet_sso_access_control', null, "$sort $dir", '*'); //,
 $aclcount = $DB->count_records('mnet_sso_access_control');
 
 if (!$acl) {
-    print_heading(get_string('noaclentries','mnet'));
+    echo $OUTPUT->heading(get_string('noaclentries','mnet'));
     $table = NULL;
 } else {
     $table->head = $headings;
index 4ff22fad5519cf1ba63ff7949be402df0e771147..f1523002fc643115f18696b7c05fc75969e4b6d3 100644 (file)
@@ -6,7 +6,7 @@ $navlinks[] = array('name' => get_string('deletehost', 'mnet'), 'link' => null,
 $navigation = build_navigation($navlinks);
 print_header("$site->shortname: $strmnetsettings", "$site->fullname", $navigation);
 
-print_heading(get_string('mnetsettings', 'mnet'));
+echo $OUTPUT->heading(get_string('mnetsettings', 'mnet'));
 ?>
 <div id="trustedhosts"><!-- See theme/standard/styles_layout.css #trustedhosts .generaltable for rules -->
     <table class="generalbox standard" border="0" cellpadding="5" cellspacing="0">
index 2e1c4a2e3abf70fd5faadd6f34fd5d5a045dbdbe..bdeeaea44bb0d476ed7268339dd1f806519aa312 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 admin_externalpage_print_header();
-print_heading(get_string('themes'));
+echo $OUTPUT->heading(get_string('themes'));
 $original_theme = fullclone($THEME);
 $logurl = $CFG->wwwroot.
           '/course/report/log/index.php?chooselog=1&amp;showusers=1&amp;showcourses=1&amp;host_course='.$mnet_peer->id.
index 2f125de65c530c9a7432df9ed6417c71777010f4..09e0f5cd53bfc40204284dfedb5d2f1692826835 100644 (file)
@@ -72,7 +72,7 @@
 
     if (!empty($delete) and confirm_sesskey()) {
         admin_externalpage_print_header();
-        print_heading($stractivities);
+        echo $OUTPUT->heading($stractivities);
 
         $strmodulename = get_string("modulename", "$delete");
 
     }
 
     admin_externalpage_print_header();
-    print_heading($stractivities);
+    echo $OUTPUT->heading($stractivities);
 
 /// Get and sort the existing modules
 
index da5ee8a1bc92312311ad8b1dd69cd7629c70309b..158747ef0a57c7a4ace23f8655df6c0d37392f16 100644 (file)
@@ -12,7 +12,7 @@ $go = optional_param('go', 0, PARAM_BOOL);
 ###################################################################
 admin_externalpage_print_header();
 
-print_heading(get_string('multilangupgrade', 'admin'));
+echo $OUTPUT->heading(get_string('multilangupgrade', 'admin'));
 
 $strmultilangupgrade = get_String('multilangupgradeinfo', 'admin');
 
index ae3e6923cecc7229eb4fce15d826b3db56af7614..e7e7d9d798a54003208a1e92548574633f7a0c2b 100644 (file)
@@ -16,10 +16,10 @@ if (!isset($CFG)) {
 
 
 function online_assignment_cleanup($output=false) {
-    global $CFG, $DB;
+    global $CFG, $DB, $OUTPUT;
 
     if ($output) {
-        print_heading('Online Assignment Cleanup');
+        echo $OUTPUT->heading('Online Assignment Cleanup');
         echo '<center>';
     }
 
@@ -48,7 +48,7 @@ function online_assignment_cleanup($output=false) {
     foreach ($courses as $course) {
 
         $fullname = empty($course->fullname) ? 'Course: '.$course->id : $course->fullname;
-        if ($output) print_heading($fullname);
+        if ($output) echo $OUTPUT->heading($fullname);
 
         /// retrieve a list of sections beyond what is currently being shown
         $sql = "SELECT *
index a7db7142308914ce3b0aa5b2f35187b1c024a6fc..af4ccab4f578d1d25ba0e6b77ecf8826c70c2617 100644 (file)
@@ -62,12 +62,12 @@ if (!empty($edit) || !empty($new)) {
         }
         $savedstr = get_string('instancesaved', 'portfolio');
         admin_externalpage_print_header();
-        print_heading($savedstr);
+        echo $OUTPUT->heading($savedstr);
         redirect($baseurl, $savedstr, 3);
         exit;
     } else {
         admin_externalpage_print_header();
-        print_heading(get_string('configplugin', 'portfolio'));
+        echo $OUTPUT->heading(get_string('configplugin', 'portfolio'));
         print_simple_box_start();
         $mform->display();
         print_simple_box_end();
@@ -94,7 +94,7 @@ if (!empty($edit) || !empty($new)) {
         }
         if ($instance->delete()) {
             $deletedstr = get_string('instancedeleted', 'portfolio');
-            print_heading($deletedstr);
+            echo $OUTPUT->heading($deletedstr);
             redirect($baseurl, $deletedstr, 3);
         } else {
             print_error('instancenotdeleted', 'portfolio', $baseurl);
index ae378b8a39d405c31bae2aa74b2f3f61201d6356..40ac6c791fcd88169390e1b9dc5e3a8ab69a7841 100644 (file)
         if (!optional_param('confirm', '', PARAM_BOOL)) {
             $qtypename = $QTYPES[$delete]->local_name();
             admin_externalpage_print_header();
-            print_heading(get_string('deleteqtypeareyousure', 'admin', $qtypename));
+            echo $OUTPUT->heading(get_string('deleteqtypeareyousure', 'admin', $qtypename));
             notice_yesno(get_string('deleteqtypeareyousuremessage', 'admin', $qtypename),
                     admin_url('qtypes.php?delete=' . $delete . '&amp;confirm=1&amp;sesskey=' . sesskey()),
                     admin_url('qtypes.php'), NULL, NULL, 'post', 'get');
 
         // Do the deletion.
         admin_externalpage_print_header();
-        print_heading(get_string('deletingqtype', 'admin', $qtypename));
+        echo $OUTPUT->heading(get_string('deletingqtype', 'admin', $qtypename));
 
         // Delete any configuration records.
         if (!unset_all_config_for_plugin('qtype_' . $delete)) {
 
 /// Print the page heading.
     admin_externalpage_print_header();
-    print_heading(get_string('manageqtypes', 'admin'));
+    echo $OUTPUT->heading(get_string('manageqtypes', 'admin'));
 
 /// Set up the table.
     $table = new flexible_table('qtypeadmintable');
index fc6b62b0b131d47ffaae9214b2e9626e4a06c657..9f77f88c9e4238a950fc5ebd59a574d4121847e3 100644 (file)
@@ -36,7 +36,7 @@
     $navlinks[] = array('name' => $strregistration, 'link' => null, 'type' => 'misc');
     $navigation = build_navigation($navlinks);
 
-    print_heading($strregistration);
+    echo $OUTPUT->heading($strregistration);
 
     print_simple_box($strregistrationinfo, "center", "70%");
 
index ff145dc2721796e660b0f7a8a52ec462b6c0d9ea..2e75a5947b16950a80b1295eddb729a13b8fc7ad 100644 (file)
@@ -13,7 +13,7 @@ $replace = optional_param('replace', '', PARAM_RAW);
 ###################################################################
 admin_externalpage_print_header();
 
-print_heading('Search and replace text throughout the whole database');
+echo $OUTPUT->heading('Search and replace text throughout the whole database');
 
 
 if (!data_submitted() or !$search or !$replace or !confirm_sesskey()) {   /// Print a form
index ef93e70f0d77645f175b43aea30785d9c3ebf602..cb077b5673a8cc8b08f3569d58283a7592275578 100644 (file)
@@ -43,7 +43,7 @@
 /// Decide when to show last execution logs or detailed logs
 /// Lastlog view
     if (!$courseid) {
-        print_heading($backuploglaststatus);
+        echo $OUTPUT->heading($backuploglaststatus);
         print_simple_box_start('center');
     /// Now, get every record from backup_courses
         $courses = $DB->get_records("backup_courses");
         print_simple_box_end();
 /// Detailed View !!
     } else {
-        print_heading($backuplogdetailed);
+        echo $OUTPUT->heading($backuplogdetailed);
 
         $coursename = $DB->get_field("course", "fullname", array("id"=>"$courseid"));
-        print_heading("$strcourse: $coursename");
+        echo $OUTPUT->heading("$strcourse: $coursename");
 
         print_simple_box_start('center');
 
index 7256f8b764086418ab9a29e82139f64b727723b0..3c701c8f3b1f1906279a2b29073b8f6c08d52676 100644 (file)
@@ -71,7 +71,7 @@ if (count($cleanedroleids) == count($allroles)) {
 // Print the settings form.
 print_box_start('generalbox boxwidthwide boxaligncenter centerpara');
 echo '<form method="get" action="." id="settingsform">';
-print_heading(get_string('reportsettings', 'report_capability'));
+echo $OUTPUT->heading(get_string('reportsettings', 'report_capability'));
 echo '<p id="intro">', get_string('intro', 'report_capability') , '</p>';
 echo '<p><label for="menucapability"> ' . get_string('capabilitylabel', 'report_capability') . '</label></p>';
 choose_from_menu($capabilitychoices, 'capability', $capability, 'choose', '', '', false, false, 0, '', true);
@@ -143,8 +143,7 @@ if ($capability) {
     }
 
     // Print the report heading.
-    print_heading(get_string('reportforcapability', 'report_capability', get_capability_string($capability)),
-            '', 2, 'main', false, 'report');
+    echo $OUTPUT->heading(get_string('reportforcapability', 'report_capability', get_capability_string($capability)), 2, 'main', 'report');
     if (count($cleanedroleids) != count($allroles)) {
         $rolenames = array();
         foreach ($cleanedroleids as $roleid) {
index ee567dea8f196a466ee6394b77e1e3baa593183e..723e84ad38c5f2cd15c87d3e220993180cab87da 100644 (file)
@@ -12,7 +12,7 @@ $dir     = optional_param('dir', 'DESC', PARAM_ALPHA);
 admin_externalpage_setup('reportconfiglog');
 admin_externalpage_print_header();
 
-print_heading(get_string('configlog', 'report_configlog'));
+echo $OUTPUT->heading(get_string('configlog', 'report_configlog'));
 
 $changescount = $DB->count_records('config_log');
 
index b819514133a156d36361f664f601d21e887f1812..84c5817f0a3d090d496d43605865150e00612915 100644 (file)
@@ -59,7 +59,7 @@
     echo '</div>';
     echo '</form>';
 
-    print_heading($reportoptions[$report]);
+    echo $OUTPUT->heading($reportoptions[$report]);
 
 
     if (!empty($report) && !empty($time)) {
index d4852422ca447285462c48681afc2b680c2ec586..202fc67115255764cd655c50bb78322e3de3cdc6 100644 (file)
@@ -30,7 +30,7 @@ foreach ($QTYPES as $qtype) {
 // Print the settings form.
 print_box_start('generalbox boxwidthwide boxaligncenter centerpara');
 echo '<form method="get" action="." id="settingsform"><div>';
-print_heading(get_string('reportsettings', 'report_questioninstances'));
+echo $OUTPUT->heading(get_string('reportsettings', 'report_questioninstances'));
 echo '<p id="intro">', get_string('intro', 'report_questioninstances') , '</p>';
 echo '<p><label for="menuqtype"> ' . get_string('questiontype', 'admin') . '</label> ';
 choose_from_menu($qtypechoices, 'qtype', $requestedqtype, get_string('all'), '', '_all_');
@@ -73,7 +73,7 @@ if ($requestedqtype) {
             ORDER BY numquestions DESC, numhidden ASC, con.contextlevel ASC, con.id ASC", $params);
 
     // Print the report heading.
-    print_heading($title);
+    echo $OUTPUT->heading($title);
 
     // Initialise the table.
     $table = new stdClass;
index 1e8d2d921223617debd246d5a91fad61718fc0cb..cdc0da88ede38a6d84ed16aeb91deb18cf09b0e7 100644 (file)
@@ -46,7 +46,7 @@ if (array_search($issue, $issues, true) === false) {
 admin_externalpage_setup('reportsecurity');
 admin_externalpage_print_header();
 
-print_heading(get_string('reportsecurity', 'report_security'));
+echo $OUTPUT->heading(get_string('reportsecurity', 'report_security'));
 
 echo '<div id="timewarning">'.get_string('timewarning', 'report_security').'</div>';
 while(@ob_end_flush());
@@ -124,4 +124,4 @@ if ($issue and ($result = $issue(true))) {
     print_table($table);
 }
 
-print_footer();
\ No newline at end of file
+print_footer();
index 34cdb92270a089452cde99fc2838dda36a89364b..ee352a00ce1d7225ff2136593bf7f01b40d589c2 100644 (file)
@@ -76,7 +76,7 @@ if (!empty($tests)) {
 
         $UNITTEST->func_test_db = $database; // pass the db to the tests through global
 
-        print_heading('Running tests on: '.$dbinfo['name'], '', 3); // TODO: localise
+        echo $OUTPUT->heading('Running tests on: '.$dbinfo['name'], 3); // TODO: localise
 
         // Create the group of tests.
         $test = new autogroup_test_coverage(false, true, $codecoverage);
@@ -106,7 +106,7 @@ if (!empty($tests)) {
 echo $OUTPUT->box_start('generalbox boxwidthwide boxaligncenter');
 echo '<form method="post" action="dbtest.php">';
 echo '<div>';
-print_heading("Run functional database tests"); // TODO: localise
+echo $OUTPUT->heading("Run functional database tests"); // TODO: localise
 echo '<p>'; echo $OUTPUT->checkbox(html_select_option::make_checkbox(1, $showpasses, get_string('showpasses', 'simpletest')), 'showpasses') ; echo '</p>';
 if (moodle_coverage_recorder::can_run_codecoverage()) {
     echo '<p>'; echo $OUTPUT->checkbox(html_select_option::make_checkbox(1, $codecoverage, get_string('codecoverageanalysis', 'simpletest')), 'codecoverage') ; echo '</p>';
index 3b74664762c1c3100c0463c857fd3fb7f016490c..615ded66af2b5d6b6ffeefa99521173f70e4a0c2 100644 (file)
@@ -58,7 +58,7 @@ if (!is_null($path)) {
     $reporter = new ExHtmlReporter($showpasses);
 
     if ($showsearch) {
-        print_heading('Searching for test cases');
+        echo $OUTPUT->heading('Searching for test cases');
     }
     flush();
 
@@ -88,7 +88,7 @@ if (!is_null($path)) {
         } else {
             $title = get_string('moodleunittests', $langfile, $displaypath);
         }
-        print_heading($title);
+        echo $OUTPUT->heading($title);
         set_time_limit(300); // 5 mins
         $test->run($reporter);
     }
@@ -101,7 +101,7 @@ if (!is_null($path)) {
 }
 // Print the form for adjusting options.
 echo $OUTPUT->box_start('generalbox boxwidthwide boxaligncenter');
-print_heading($formheader);
+echo $OUTPUT->heading($formheader);
 echo '<form method="get" action="index.php">';
 echo '<fieldset class="invisiblefieldset">';
 echo '<p>'; echo $OUTPUT->checkbox(html_select_option::make_checkbox(1, $showpasses, get_string('showpasses', $langfile)), 'showpasses') ; echo '</p>';
@@ -125,12 +125,12 @@ if (true) {
     echo "<p>Fake test tables are disabled for now, sorry</p>"; // DO NOT LOCALISE!!! to be removed soon
 
 } else if (empty($CFG->unittestprefix)) {
-    print_heading(get_string('testdboperations', 'simpletest'));
+    echo $OUTPUT->heading(get_string('testdboperations', 'simpletest'));
     // TODO: localise
     echo '<p>Please add $CFG->unittestprefix="tst_"; or some other unique test table prefix if you want to execute all tests';
 
 } else {
-    print_heading(get_string('testdboperations', 'simpletest'));
+    echo $OUTPUT->heading(get_string('testdboperations', 'simpletest'));
     echo '<p>'.get_string('unittestprefixsetting', 'simpletest', $CFG).'</p>';
 
     echo '<form style="display:inline" method="get" action="index.php">';
index 7ee03f0705df3be5024dc0f9c0652b4836b68898..8965a12dbbf8c63726d370cbf18d6b017d6db6c0 100644 (file)
@@ -97,7 +97,7 @@ if (!empty($edit) || !empty($new)) {
         if ($success) {
             $savedstr = get_string('configsaved', 'repository');
             admin_externalpage_print_header();
-            print_heading($savedstr);
+            echo $OUTPUT->heading($savedstr);
             redirect($baseurl, $savedstr, 3);
         } else {
             print_error('instancenotsaved', 'repository', $baseurl);
@@ -105,7 +105,7 @@ if (!empty($edit) || !empty($new)) {
         exit;
     } else {
         admin_externalpage_print_header();
-        print_heading(get_string('configplugin', 'repository_'.$plugin));
+        echo $OUTPUT->heading(get_string('configplugin', 'repository_'.$plugin));
         $displaysettingform = true;
         if ($edit) {
             $typeoptionnames = repository::static_function($edit, 'get_type_option_names');
@@ -149,7 +149,7 @@ if (!empty($edit) || !empty($new)) {
         }
         if ($repositorytype->delete()) {
             $deletedstr = get_string('removed', 'repository');
-            print_heading($deletedstr);
+            echo $OUTPUT->heading($deletedstr);
             redirect($baseurl, $deletedstr, 3);
         } else {
             print_error('instancenotdeleted', 'repository', $baseurl);
index 70ed60ea1521994e7554559d4bfa7b444d5f33c7..d51653364464e563745cf64b937e2eef196e09ec 100644 (file)
@@ -81,7 +81,7 @@ if (!empty($edit) || !empty($new)) {
         if ($success) {
             $savedstr = get_string('configsaved', 'repository');
             admin_externalpage_print_header();
-            print_heading($savedstr);
+            echo $OUTPUT->heading($savedstr);
             redirect($baseurl, $savedstr, 3);
         } else {
             print_error('instancenotsaved', 'repository', $baseurl);
@@ -89,7 +89,7 @@ if (!empty($edit) || !empty($new)) {
         exit;
     } else {
         admin_externalpage_print_header();
-        print_heading(get_string('configplugin', 'repository_'.$plugin));
+        echo $OUTPUT->heading(get_string('configplugin', 'repository_'.$plugin));
         print_simple_box_start();
         $mform->display();
         print_simple_box_end();
@@ -115,7 +115,7 @@ if (!empty($edit) || !empty($new)) {
         }
         if ($instance->delete()) {
             $deletedstr = get_string('instancedeleted', 'repository');
-            print_heading($deletedstr);
+            echo $OUTPUT->heading($deletedstr);
             redirect($baseurl, $deletedstr, 3);
         } else {
             print_error('instancenotdeleted', 'repository', $baseurl);
index 3025499cdad1516b5dd815d2036dca7a928da55a..3bf0d0b7d603712d00599de8870d09126553c481 100755 (executable)
 
     } else if (empty($assignableroles)) {
     /// Print a message that there are no roles that can me assigned here.
-        print_heading(get_string('notabletoassignroleshere', 'role'), '', 3);
+        echo $OUTPUT->heading(get_string('notabletoassignroleshere', 'role'), 3);
 
     } else {
     /// Show UI for choosing a role to assign.
         }
 
         // Print instruction
-        print_heading(get_string('chooseroletoassign', 'role'), '', 3);
+        echo $OUTPUT->heading(get_string('chooseroletoassign', 'role'), 3);
 
         // sync metacourse enrolments if needed
         if ($inmeta) {
index ae6a14d742a6d66dd2b59f27624e27f2080e2adf..141845dc4cc097fee1abd0c0591dc16d49fd7db3 100755 (executable)
     $reportuser = $userselector->get_selected_user();
     if (!is_null($reportuser)) {
         print_box_start('generalbox boxaligncenter boxwidthwide');
-        print_heading(get_string('permissionsforuser', 'role', fullname($reportuser)), '', 3);
+        echo $OUTPUT->heading(get_string('permissionsforuser', 'role', fullname($reportuser)), 3);
 
         $table = new explain_capability_table($context, $reportuser, $contextname);
         $table->display();
     }
 
 /// User selector.
-    print_heading('<label for="reportuser">' . $selectheading . '</label>', '', 3);
+    echo $OUTPUT->heading('<label for="reportuser">' . $selectheading . '</label>', 3);
     $userselector->display(); 
 
 /// Submit button and the end of the form.
index 90c73fa11d8e6b556b67e4e59a9a9d1ab1b3a69a..87f27dcf04a9dc16166b2ec60042016059e3b6be 100755 (executable)
@@ -178,7 +178,7 @@ $strperm = array(
 
 // Start the output.
 print_header(get_string('explainpermission', 'role'));
-print_heading(get_string('explainpermission', 'role'));
+echo $OUTPUT->heading(get_string('explainpermission', 'role'));
 
 // Print a summary of what we are doing.
 $a = new stdClass;
index c8cf6ee85bc52108f04a17fab3668e3663a121c7..4ffc4c98e8b36a86bbbd97952e61f459bbfb9d25 100755 (executable)
 
     } else if (empty($overridableroles)) {
     /// Print a message that there are no roles that can me assigned here.
-        print_heading(get_string('notabletooverrideroleshere', 'role'), 'center', 3);
+        echo $OUTPUT->heading(get_string('notabletooverrideroleshere', 'role'), 3, 'mdl-align');
 
     } else {
     /// Show UI for choosing a role to assign.
index 60c7290c7df0da66a7551209e20646c6b7ec9db7..3264b655d2c74255639bb003ea62bae69ecc1586 100644 (file)
@@ -144,7 +144,7 @@ if ($courseid != SITEID) {
 $showroles = 1;
 $currenttab = 'usersroles';
 include_once($CFG->dirroot.'/user/tabs.php');
-print_heading($title, '', 3);
+echo $OUTPUT->heading($title, 3);
 print_box_start('generalbox boxaligncenter boxwidthnormal');
 
 // Display them.
@@ -175,7 +175,7 @@ function print_report_tree($contextid, $contexts, $systemcontext, $fullname) {
     $context = $contexts[$contextid];
 
     // Print the context name.
-    print_heading(print_context_name($contexts[$contextid]), '', 4, 'contextname');
+    echo $OUTPUT->heading(print_context_name($contexts[$contextid]), 4, 'contextname');
 
     // If there are any role assignments here, print them.
     foreach ($context->roleassignments as $ra) {
index 58bd013e705255688f3332f0a17c17c647996588..7cefc1de379f09e287f8ffd4c07351f3c23d020d 100644 (file)
@@ -118,7 +118,7 @@ if (empty($SITE->fullname)) {
     echo $PAGE->url->hidden_params_out();
     echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
     echo '<input type="hidden" name="return" value="'.$return.'" />';
-    print_heading($settingspage->visiblename);
+    echo $OUTPUT->heading($settingspage->visiblename);
 
     echo $settingspage->output_html();
 
index d09f0e6cdd012990bc0892de254d4a0064693210..b3c1578ef37b24de26bcdfb9c5d8b8fce74342b2 100644 (file)
@@ -20,7 +20,7 @@
 
     print_header($strtimezone, $strtimezone, build_navigation(array(array('name' => $strtimezone, 'link' => null, 'type' => 'misc'))));
 
-    print_heading("");
+    echo $OUTPUT->heading("");
 
     if (data_submitted() and !empty($zone) and confirm_sesskey()) {
         echo "<center>";
index 89a4459750cf8e4b39124db708f082a40e4cc786..bdb81175f94fad03484e5ceec76eac8db6484bdc 100644 (file)
@@ -18,7 +18,7 @@
 
     admin_externalpage_print_header();
 
-    print_heading($strimporttimezones);
+    echo $OUTPUT->heading($strimporttimezones);
 
     if (!$ok or !confirm_sesskey()) {
         $message = '<br /><br />';
@@ -92,7 +92,7 @@
         $a = null;
         $a->count = count($timezones);
         $a->source  = $importdone;
-        print_heading(get_string('importtimezonescount', 'admin', $a), '', 3);
+        echo $OUTPUT->heading(get_string('importtimezonescount', 'admin', $a), 3);
 
         print_continue('index.php');
 
         print_simple_box_end();
 
     } else {
-        print_heading(get_string('importtimezonesfailed', 'admin'), '', 3);
+        echo $OUTPUT->heading(get_string('importtimezonesfailed', 'admin'), 3);
         print_continue('index.php');
     }
 
index 07baf3c95922b001ac0c8691009540a9aaae3f9e..ba104f865c65bf067405cb5158ecbd5b3c08770c 100755 (executable)
@@ -130,7 +130,7 @@ if ($formdata = $mform->is_cancelled()) {
 } else if ($formdata = $mform->get_data()) {
     // Print the header
     admin_externalpage_print_header();
-    print_heading(get_string('uploadusersresult', 'admin'));
+    echo $OUTPUT->heading(get_string('uploadusersresult', 'admin'));
 
     $optype = $formdata->uutype;
 
index 4d35597fe85052ac242842c7669a13fa946a014e..4b2fd933a476aebd0dad341e97f70a14570482b8 100644 (file)
@@ -71,7 +71,7 @@
         if ($confirm != md5($delete)) {
             admin_externalpage_print_header();
             $fullname = fullname($user, true);
-            print_heading(get_string('deleteuser', 'admin'));
+            echo $OUTPUT->heading(get_string('deleteuser', 'admin'));
             $optionsyes = array('delete'=>$delete, 'confirm'=>md5($delete), 'sesskey'=>sesskey());
             notice_yesno(get_string('deletecheckfull', '', "'$fullname'"), 'user.php', 'user.php', $optionsyes, NULL, 'post', 'get');
             admin_externalpage_print_footer();
     $usersearchcount = get_users(false, '', true, null, "", '', '', '', '', '*', $extrasql, $params);
 
     if ($extrasql !== '') {
-        print_heading("$usersearchcount / $usercount ".get_string('users'));
+        echo $OUTPUT->heading("$usersearchcount / $usercount ".get_string('users'));
         $usercount = $usersearchcount;
     } else {
-        print_heading("$usercount ".get_string('users'));
+        echo $OUTPUT->heading("$usercount ".get_string('users'));
     }
 
     $alphabet = explode(',', get_string('alphabet'));
 
     if (!$users) {
         $match = array();
-        print_heading(get_string('nousersfound'));
+        echo $OUTPUT->heading(get_string('nousersfound'));
 
         $table = NULL;
 
     $ufiltering->display_active();
 
     if (has_capability('moodle/user:create', $sitecontext)) {
-        print_heading('<a href="'.$securewwwroot.'/user/editadvanced.php?id=-1">'.get_string('addnewuser').'</a>');
+        echo $OUTPUT->heading('<a href="'.$securewwwroot.'/user/editadvanced.php?id=-1">'.get_string('addnewuser').'</a>');
     }
     if (!empty($table)) {
         print_table($table);
         print_paging_bar($usercount, $page, $perpage,
                          "user.php?sort=$sort&amp;dir=$dir&amp;perpage=$perpage&amp;");
         if (has_capability('moodle/user:create', $sitecontext)) {
-            print_heading('<a href="'.$securewwwroot.'/user/editadvanced.php?id=-1">'.get_string('addnewuser').'</a>');
+            echo $OUTPUT->heading('<a href="'.$securewwwroot.'/user/editadvanced.php?id=-1">'.get_string('addnewuser').'</a>');
         }
     }
 
index 2935ad4adfc4b5298fd92767b867e20b5adefb84..7d71c2af807d599764316ff3ef9dd7c01ef07d59 100755 (executable)
@@ -46,9 +46,9 @@ if ($confirm and confirm_sesskey()) {
     $optionsyes = array();
     $optionsyes['confirm'] = 1;
     $optionsyes['sesskey'] = sesskey();
-    print_heading(get_string('confirmation', 'admin'));
+    echo $OUTPUT->heading(get_string('confirmation', 'admin'));
     notice_yesno(get_string('confirmcheckfull', '', $usernames), 'user_bulk_confirm.php', 'user_bulk.php', $optionsyes, NULL, 'post', 'get');
 }
 
 admin_externalpage_print_footer();
-?>
\ No newline at end of file
+?>
index 099d288676cf993d303533774d345153ab51c414..41127a0dc459b1eb5ca3b8314843ccd36b031b63 100755 (executable)
@@ -46,7 +46,7 @@ if ($confirm and confirm_sesskey()) {
     $optionsyes = array();
     $optionsyes['confirm'] = 1;
     $optionsyes['sesskey'] = sesskey();
-    print_heading(get_string('confirmation', 'admin'));
+    echo $OUTPUT->heading(get_string('confirmation', 'admin'));
     notice_yesno(get_string('deletecheckfull', '', $usernames), 'user_bulk_delete.php', 'user_bulk.php', $optionsyes, NULL, 'post', 'get');
 }
 
index 79bcbf1ab3aa2053154266f2658013d93b3eb886..25aa2f8ed0cf8e1016b49b4997a1688a38866954 100755 (executable)
@@ -72,10 +72,10 @@ foreach($users as $user) {
     );
 }
 
-print_heading("$usercount / $usertotal ".get_string('users'));
+echo $OUTPUT->heading("$usercount / $usertotal ".get_string('users'));
 print_table($table);
 
 print_continue($return);
 
 admin_externalpage_print_footer();
-?>
\ No newline at end of file
+?>
index 34cbe3ccaa75b9bfd38010a9176c6ff3a983413d..0ee20bdb51ce67d1e10476169a9ec6a109ae058b 100755 (executable)
@@ -54,7 +54,7 @@ if ($format) {
 }
 
 admin_externalpage_print_header();
-print_heading(get_string('download', 'admin'));
+echo $OUTPUT->heading(get_string('download', 'admin'));
 
 print_box_start();
 echo '<ul>';
index 36c5a84061b278483c05a7b0490c83050aed1dd9..737f76d2f083fa5b22681bd2966226ac48d60d44 100644 (file)
@@ -123,7 +123,7 @@ foreach($users as $user)
     }
     $table->data[] = $temparray;
 }
-print_heading("$usercount / $usertotal ".get_string('users'));
+echo $OUTPUT->heading("$usercount / $usertotal ".get_string('users'));
 print_table($table);
 echo '<div class="continuebutton">';
 echo '<input type="submit" name="multienrolsubmit" value="save changes" />';
index 3b9b2d0a2274cd193b9bccfd6503db821271319e..c5c92768d606fb1cb11dad2c1e93c80e6a7fced5 100755 (executable)
@@ -60,7 +60,7 @@ if ($msgform->is_cancelled()) {
     $optionsyes['sesskey'] = sesskey();
     $optionsyes['msg']     = $msg;
     admin_externalpage_print_header();
-    print_heading(get_string('confirmation', 'admin'));
+    echo $OUTPUT->heading(get_string('confirmation', 'admin'));
     print_box($msg, 'boxwidthnarrow boxaligncenter generalbox', 'preview');
     notice_yesno(get_string('confirmmessage', 'bulkusers', $usernames), 'user_bulk_message.php', 'user_bulk.php', $optionsyes, NULL, 'post', 'get');
     admin_externalpage_print_footer();
index ffad1bdac45d0ae93d74baa59b5082c5ff22ecf4..f5b67332efd454c07f3decca1ffdda07acb1d988 100644 (file)
 
                     /// Go with standard admin header
                         admin_externalpage_print_header();
-                        print_heading($xmldb_action->getTitle());
+                        echo $OUTPUT->heading($xmldb_action->getTitle());
                         echo $xmldb_action->getOutput();
                         admin_externalpage_print_footer();
                         break;