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";
}
}
}
}
-function update_module_icon($moduleid) {
+function update_module_icon($moduleid, $courseid) {
global $CFG;
if (isteacher($courseid)) {
/// 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.