]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-12601 prevent fatal errors when module code missing + merging other stuff; merged...
authorskodak <skodak>
Sun, 16 Dec 2007 13:41:16 +0000 (13:41 +0000)
committerskodak <skodak>
Sun, 16 Dec 2007 13:41:16 +0000 (13:41 +0000)
course/lib.php

index 1874a6aa698e73273ee81fb2e0e87ab4b6af29c2..34b436406d2f4daa157c9baf29a79975c4cab396 100644 (file)
@@ -1507,7 +1507,7 @@ function print_section_add_menus($course, $section, $modnames, $vertical=false,
                 continue;
             }
 
-            require_once("$CFG->dirroot/mod/$modname/lib.php");
+            include_once("$CFG->dirroot/mod/$modname/lib.php");
             $gettypesfunc =  $modname.'_get_types';
             if (function_exists($gettypesfunc)) {
                 $types = $gettypesfunc();
@@ -1842,7 +1842,7 @@ function print_course($course) {
 
     echo '<div class="coursebox clearfix">';
     echo '<div class="info">';
-    echo '<div class="name"><a '.
+    echo '<div class="name"><a title="'.get_string('entercourse').'"'.
          $linkcss.' href="'.$CFG->wwwroot.'/course/view.php?id='.$course->id.'">'.
          format_string($course->fullname).'</a></div>';   
     
@@ -2938,4 +2938,4 @@ function update_course($data) {
     return false;
 }
 
-?>
\ No newline at end of file
+?>