From: martin <martin> Date: Thu, 4 Jul 2002 07:49:38 +0000 (+0000) Subject: Added missing parameter to update_module_icon (courseid) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=bcc83c41f2b091e7bfdeb2e7ce2c193ab3b6676c;p=moodle.git Added missing parameter to update_module_icon (courseid) --- diff --git a/lib/moodlelib.php b/lib/moodlelib.php index d38d5b4820..b6e1850635 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -53,10 +53,10 @@ function print_footer ($course=NULL) { function print_navigation ($navigation) { global $CFG; - if (! $site = get_record("course", "category", 0)) { - $site->shortname = "Home"; - } if ($navigation) { + if (! $site = get_record("course", "category", 0)) { + $site->shortname = get_string("home");; + } echo "<A TARGET=_top HREF=\"$CFG->wwwroot/\">$site->shortname</A> -> $navigation"; } } @@ -193,7 +193,7 @@ function update_course_icon($courseid) { } } -function update_module_icon($moduleid) { +function update_module_icon($moduleid, $courseid) { global $CFG; if (isteacher($courseid)) { @@ -1094,6 +1094,11 @@ function get_directory_list( $rootdir ) { /// STRING TRANSLATION //////////////////////////////////////// +function print_string($identifier, $module="", $a="", $b="", $c="") { + echo get_string($identifier, $module, $a, $b, $c); +} + + function get_string($identifier, $module="", $a="", $b="", $c="") { // Return the translated string specified by $identifier as // for $module. Uses the same format files as STphp.