Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added missing parameter to update_module_icon (courseid)

  • Loading branch information...
commit bcc83c41f2b091e7bfdeb2e7ce2c193ab3b6676c 1 parent da8b7aa
martin authored

Showing 1 changed file with 9 additions and 4 deletions. Show diff stats Hide diff stats

  1. +9 4 lib/moodlelib.php
13 lib/moodlelib.php
@@ -53,10 +53,10 @@ function print_footer ($course=NULL) {
53 53 function print_navigation ($navigation) {
54 54 global $CFG;
55 55
56   - if (! $site = get_record("course", "category", 0)) {
57   - $site->shortname = "Home";
58   - }
59 56 if ($navigation) {
  57 + if (! $site = get_record("course", "category", 0)) {
  58 + $site->shortname = get_string("home");;
  59 + }
60 60 echo "<A TARGET=_top HREF=\"$CFG->wwwroot/\">$site->shortname</A> -> $navigation";
61 61 }
62 62 }
@@ -193,7 +193,7 @@ function update_course_icon($courseid) {
193 193 }
194 194 }
195 195
196   -function update_module_icon($moduleid) {
  196 +function update_module_icon($moduleid, $courseid) {
197 197 global $CFG;
198 198
199 199 if (isteacher($courseid)) {
@@ -1094,6 +1094,11 @@ function get_directory_list( $rootdir ) {
1094 1094
1095 1095 /// STRING TRANSLATION ////////////////////////////////////////
1096 1096
  1097 +function print_string($identifier, $module="", $a="", $b="", $c="") {
  1098 + echo get_string($identifier, $module, $a, $b, $c);
  1099 +}
  1100 +
  1101 +
1097 1102 function get_string($identifier, $module="", $a="", $b="", $c="") {
1098 1103 // Return the translated string specified by $identifier as
1099 1104 // for $module. Uses the same format files as STphp.

0 comments on commit bcc83c4

Please sign in to comment.
Something went wrong with that request. Please try again.