]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19799 Upgraded calls to print_heading_block
authornicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 01:26:12 +0000 (01:26 +0000)
committernicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 01:26:12 +0000 (01:26 +0000)
index.php

index d92a85980d2d20004b499829c5be851df3364b62..6409402295189460283bfbdc7b65d669121ebc8f 100644 (file)
--- a/index.php
+++ b/index.php
                         } else {
                             $subtext = get_string('subscribe', 'forum');
                         }
-                        print_heading_block($newsforum->name);
+                        echo $OUTPUT->heading($newsforum->name, 2, 'headingblock header');
                         echo '<div class="subscribelink"><a href="mod/forum/subscribe.php?id='.$newsforum->id.'">'.$subtext.'</a></div>';
                     } else {
-                        print_heading_block($newsforum->name);
+                        echo $OUTPUT->heading($newsforum->name, 2, 'headingblock header');
                     }
 
                     forum_print_latest_discussions($SITE, $newsforum, $SITE->newsitems, 'plain', 'p.modified DESC');
             case FRONTPAGECOURSELIST:
 
                 if (isloggedin() and !has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM)) and !isguest() and empty($CFG->disablemycourses)) {
-                    print_heading_block(get_string('mycourses'));
+                    echo $OUTPUT->heading(get_string('mycourses'), 2, 'headingblock header');
                     print_my_moodle();
                 } else if ((!has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM)) and !isguest()) or ($DB->count_records('course') <= FRONTPAGECOURSELIMIT)) {
                     // admin should not see list of courses when there are too many of them
-                    print_heading_block(get_string('availablecourses'));
+                    echo $OUTPUT->heading(get_string('availablecourses'), 2, 'headingblock header');
                     print_courses(0);
                 }
             break;
 
             case FRONTPAGECATEGORYNAMES:
 
-                print_heading_block(get_string('categories'));
+                echo $OUTPUT->heading(get_string('categories'), 2, 'headingblock header');
                 print_box_start('generalbox categorybox');
                 print_whole_category_list(NULL, NULL, NULL, -1, false);
                 print_box_end();
 
             case FRONTPAGECATEGORYCOMBO:
 
-                print_heading_block(get_string('categories'));
+                echo $OUTPUT->heading(get_string('categories'), 2, 'headingblock header');
                 print_box_start('generalbox categorybox');
                 print_whole_category_list(NULL, NULL, NULL, -1, true);
                 print_box_end();