From bcc83c41f2b091e7bfdeb2e7ce2c193ab3b6676c Mon Sep 17 00:00:00 2001 From: martin Date: Thu, 4 Jul 2002 07:49:38 +0000 Subject: [PATCH] Added missing parameter to update_module_icon (courseid) --- lib/moodlelib.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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 "wwwroot/\">$site->shortname -> $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. -- 2.39.5