From: skodak <skodak> Date: Sun, 16 Dec 2007 13:41:16 +0000 (+0000) Subject: MDL-12601 prevent fatal errors when module code missing + merging other stuff; merged... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7f9c4fb97d4f1209df587a82f1a1f01f45b45df3;p=moodle.git MDL-12601 prevent fatal errors when module code missing + merging other stuff; merged from MOODLE_19_STABLE --- diff --git a/course/lib.php b/course/lib.php index 1874a6aa69..34b436406d 100644 --- a/course/lib.php +++ b/course/lib.php @@ -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 +?>