diff --git a/course/view.php b/course/view.php
index a91c9616bdc..1e9be962948 100644
--- a/course/view.php
+++ b/course/view.php
@@ -31,7 +31,8 @@
redirect("$CFG->wwwroot");
}
- print_header("Course: $course->fullname", "$course->fullname", "$course->shortname", "");
+ print_header("Course: $course->fullname", "$course->fullname", "$course->shortname", "", "", true,
+ update_course_icon($course->id));
if (! $modtypes = get_records_sql_menu("SELECT name,fullname FROM modules ORDER BY fullname") ) {
error("No modules are installed!");
diff --git a/mod/choice/view.php b/mod/choice/view.php
index d4f166f91f5..d2db4da2fd4 100644
--- a/mod/choice/view.php
+++ b/mod/choice/view.php
@@ -48,11 +48,8 @@
print_header("$course->shortname: $choice->name", "$course->fullname",
"id>$course->shortname ->
- id>Choices -> $choice->name", "");
-
- if ($USER->editing) {
- print_update_module_icon($cm->id);
- }
+ id>Choices -> $choice->name", "", "", true,
+ update_module_icon($cm->id));
if (isteacher($course->id)) {
echo "
id\">View all responses
";
diff --git a/mod/journal/view.php b/mod/journal/view.php
index ad589507783..b5f94067764 100644
--- a/mod/journal/view.php
+++ b/mod/journal/view.php
@@ -28,11 +28,8 @@
print_header("$course->shortname: $journal->name", "$course->fullname",
"id>$course->shortname ->
- id>Journals -> $journal->name", "");
-
- if ($USER->editing) {
- print_update_module_icon($cm->id);
- }
+ id>Journals -> $journal->name", "", "", true,
+ update_module_icon($cm->id));
if (isteacher($course->id)) {
echo "id\">View all responses
";
diff --git a/mod/survey/view.php b/mod/survey/view.php
index 622766b5fdf..3c08683639e 100644
--- a/mod/survey/view.php
+++ b/mod/survey/view.php
@@ -22,12 +22,8 @@
print_header("$course->shortname: $survey->name", "$course->fullname",
"id>$course->shortname ->
- id>Surveys -> $survey->name", "");
-
-
- if ($USER->editing) {
- print_update_module_icon($cm->id);
- }
+ id>Surveys -> $survey->name", "", "", true,
+ update_module_icon($cm->id));
if (isteacher($course->id)) {
echo "id\">View all responses
";
diff --git a/theme/standard/header.html b/theme/standard/header.html
index 8ff65791e35..5191319795a 100644
--- a/theme/standard/header.html
+++ b/theme/standard/header.html
@@ -10,9 +10,16 @@
bgcolor="=$THEME->body ?>" link="#000066" vlink="#222288">
+
+|
if ($heading) { ?>
=$heading?>
} ?>
+ |
+ if ($button) {
+ echo "$button";
+ } ?>
+ |
if ($navigation) { ?>
diff --git a/theme/standardblue/header.html b/theme/standardblue/header.html
index 38074903d76..d882d420482 100644
--- a/theme/standardblue/header.html
+++ b/theme/standardblue/header.html
@@ -10,9 +10,16 @@
bgcolor="=$THEME->body ?>" link="#000066" vlink="#222288">
+
+|
if ($heading) { ?>
=$heading?>
} ?>
+ |
+ if ($button) {
+ echo "$button";
+ } ?>
+ |
if ($navigation) { ?>