diff --git a/course/lib.php b/course/lib.php
index 8da6a722bbd..ab57aa1fdb9 100644
--- a/course/lib.php
+++ b/course/lib.php
@@ -545,7 +545,7 @@ function print_course_admin_links($courseid) {
$admindata[]="wwwroot/files/index.php?id=$courseid\">".get_string("files")."...";
$adminicon[]="wwwroot/files/pix/files.gif\" HEIGHT=16 WIDTH=16 ALT=\"\">";
- $admindata[]="wwwroot/doc/teacher.html\">".get_string("help")."...";
+ $admindata[]="wwwroot/doc/view.php?id=$courseid&file=teacher.html\">".get_string("help")."...";
$adminicon[]="
wwwroot/mod/reading/icon.gif\" HEIGHT=16 WIDTH=16 ALT=\"\">";
if ($teacherforum = forum_get_course_forum($courseid, "teacher")) {
diff --git a/doc/teacher.html b/doc/teacher.html
index 6e19c70f94c..cd5f726c6ca 100755
--- a/doc/teacher.html
+++ b/doc/teacher.html
@@ -170,6 +170,7 @@
They can be given to students early in the course as a diagnostic tool and at the end of the
course as an evaluation tool (I use one every week in my courses).
+
After adding your activities you can move them up and down in your course
layout by clicking on the little arrow icons (
) next to each one. You
diff --git a/doc/view.php b/doc/view.php
new file mode 100644
index 00000000000..522c187ce96
--- /dev/null
+++ b/doc/view.php
@@ -0,0 +1,30 @@
+id)) {
+ error("Only teachers can look at this page");
+ }
+
+ $file = clean_filename($file);
+
+ if (file_exists($file)) {
+ $strhelp = get_string("help");
+ print_header("$course->shortname: $strhelp", "$course->fullname",
+ "id\">$course->shortname -> $strhelp");
+ echo "
"; + include($file); + echo ""; + } + + print_footer($course); + +?> +