]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-1899 course->category cleanup
authorskodak <skodak>
Sun, 26 Nov 2006 21:44:04 +0000 (21:44 +0000)
committerskodak <skodak>
Sun, 26 Nov 2006 21:44:04 +0000 (21:44 +0000)
lib/weblib.php

index 342a0d8162ae16fc156f5d8158c5c9a6768246b3..752c343155c1335c4f3571a9d3c4c514f279ae68 100644 (file)
@@ -2265,7 +2265,7 @@ function print_header_simple($title='', $heading='', $navigation='', $focus='',
     global $COURSE, $CFG;   
 
     $shortname ='';
-    if ($COURSE->category) {
+    if ($COURSE->id != SITEID) {
         $shortname = '<a href="'.$CFG->wwwroot.'/course/view.php?id='. $COURSE->id .'">'. $COURSE->shortname .'</a> ->';
     }