]> git.mjollnir.org Git - moodle.git/commitdiff
WHen showing just course categories, then the title of the section
authormoodler <moodler>
Sat, 13 Mar 2004 00:53:17 +0000 (00:53 +0000)
committermoodler <moodler>
Sat, 13 Mar 2004 00:53:17 +0000 (00:53 +0000)
is now "Course categories" rather than "Available courses"

index.php

index 542789d683a678ca32c23408f52c1fdae0ae3e61..d8ee0339058e4d0b0765c1fb07bab683206b2c06 100644 (file)
--- a/index.php
+++ b/index.php
                  print_spacer(8,1);
                  print_my_moodle();
              } else {
-                 print_heading_block(get_string("availablecourses"));
-                 print_spacer(8,1);
                  if (count_records("course_categories") > 1) {
+                     if ($CFG->frontpage == FRONTPAGECOURSELIST) {
+                         print_heading_block(get_string("availablecourses"));
+                     } else {
+                         print_heading_block(get_string("categories"));
+                     }
+                     print_spacer(8,1);
                      print_simple_box_start("center", "100%");
                      print_whole_category_list();
                      print_simple_box_end();
                      print_course_search("", false, "short");
                  } else {
+                     print_heading_block(get_string("availablecourses"));
+                     print_spacer(8,1);
                      print_courses(0, "100%");
                  }
              }