]> git.mjollnir.org Git - moodle.git/commitdiff
Added missing parameter to update_module_icon (courseid)
authormartin <martin>
Thu, 4 Jul 2002 07:49:38 +0000 (07:49 +0000)
committermartin <martin>
Thu, 4 Jul 2002 07:49:38 +0000 (07:49 +0000)
lib/moodlelib.php

index d38d5b48206b1ffa73898e845c0640f547b78645..b6e1850635e5ce29cdcfeee9a23492b4fb80b222 100644 (file)
@@ -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.