diff --git a/course/format/lams/format.php b/course/format/lams/format.php
index ee4720a37d3..27011b7cbac 100644
--- a/course/format/lams/format.php
+++ b/course/format/lams/format.php
@@ -245,9 +245,7 @@ while ($section <= $course->numsections) {
echo '
';
- echo '| ';
- echo ''.$section.'';
- echo ' | ';
+ echo ' | ';
echo '';
if (!isteacher($course->id) and !$thissection->visible) { // Hidden for students
@@ -273,7 +271,7 @@ while ($section <= $course->numsections) {
echo ' | ';
if ($displaysection == $section) { // Show the zoom boxes
- echo ''.
+ echo ''.
' ';
} else {
$strshowonlytopic = get_string('showonlytopic', '', $section);
@@ -283,28 +281,28 @@ while ($section <= $course->numsections) {
if (isediting($course->id)) {
if ($course->marker == $section) { // Show the "light globe" on/off
- echo ''.
+ echo ''.
' ';
} else {
- echo ''.
+ echo ''.
' ';
}
if ($thissection->visible) { // Show the hide/show eye
- echo ''.
+ echo ''.
' ';
} else {
- echo ''.
+ echo ''.
' ';
}
if ($section > 1) { // Add a arrow to move section up
- echo ''.
+ echo ''.
' ';
}
if ($section < $course->numsections) { // Add a arrow to move section down
- echo ''.
+ echo ''.
' ';
}
diff --git a/course/format/topics/format.php b/course/format/topics/format.php
index 3c7ea5932f0..205cbf9b8a2 100644
--- a/course/format/topics/format.php
+++ b/course/format/topics/format.php
@@ -171,10 +171,7 @@
}
echo ' |
';
-
- echo '| ';
- echo ''.$section.'';
- echo ' | ';
+ echo ' | ';
echo '';
if (!isteacher($course->id) and !$thissection->visible) { // Hidden for students
@@ -200,7 +197,7 @@
echo ' | ';
if ($displaysection == $section) { // Show the zoom boxes
- echo ''.
+ echo ''.
' ';
} else {
$strshowonlytopic = get_string('showonlytopic', '', $section);
@@ -210,28 +207,28 @@
if (isediting($course->id)) {
if ($course->marker == $section) { // Show the "light globe" on/off
- echo ''.
+ echo ''.
' ';
} else {
- echo ''.
+ echo ''.
' ';
}
if ($thissection->visible) { // Show the hide/show eye
- echo ''.
+ echo ''.
' ';
} else {
- echo ''.
+ echo ''.
' ';
}
if ($section > 1) { // Add a arrow to move section up
- echo ''.
+ echo ''.
' ';
}
if ($section < $course->numsections) { // Add a arrow to move section down
- echo ''.
+ echo ''.
' ';
}
diff --git a/course/format/weeks/format.php b/course/format/weeks/format.php
index 7434cb0af5a..cc6c1ed9d69 100644
--- a/course/format/weeks/format.php
+++ b/course/format/weeks/format.php
@@ -168,9 +168,7 @@
}
echo ' |
';
- echo '| ';
- echo ''.$section.'';
- echo ' | ';
+ echo ' | ';
echo '';
if (!isteacher($course->id) and !$thissection->visible) { // Hidden for students
@@ -200,7 +198,7 @@
echo ' | ';
if ($displaysection == $section) {
- echo ''.
+ echo ''.
' ';
} else {
$strshowonlyweek = get_string("showonlyweek", "", $section);
@@ -210,19 +208,19 @@
if (isediting($course->id)) {
if ($thissection->visible) { // Show the hide/show eye
- echo ''.
+ echo ''.
' ';
} else {
- echo ''.
+ echo ''.
' ';
}
if ($section > 1) { // Add a arrow to move section up
- echo ''.
+ echo ''.
' ';
}
if ($section < $course->numsections) { // Add a arrow to move section down
- echo ''.
+ echo ''.
' ';
}
}
diff --git a/course/mod.php b/course/mod.php
index 847009efc2c..b40dd5a64ad 100644
--- a/course/mod.php
+++ b/course/mod.php
@@ -35,7 +35,7 @@
unset($SESSION->returnpage);
redirect($return);
} else {
- redirect("view.php?id=$mod->course#$sectionreturn");
+ redirect("view.php?id=$mod->course#section-$sectionreturn");
}
}
@@ -215,7 +215,7 @@
unset($SESSION->returnpage);
redirect($return);
} else {
- redirect("view.php?id=$course->id#$sectionreturn");
+ redirect("view.php?id=$course->id#section-$sectionreturn");
}
exit;
}
@@ -260,7 +260,7 @@
if (SITEID == $section->course) {
redirect($CFG->wwwroot);
} else {
- redirect("view.php?id=$section->course#$sectionreturn");
+ redirect("view.php?id=$section->course#section-$sectionreturn");
}
} else if (isset_param('indent') and confirm_sesskey()) {
@@ -288,7 +288,7 @@
if (SITEID == $cm->course) {
redirect($CFG->wwwroot);
} else {
- redirect("view.php?id=$cm->course#$sectionreturn");
+ redirect("view.php?id=$cm->course#section-$sectionreturn");
}
exit;
@@ -309,7 +309,7 @@
if (SITEID == $cm->course) {
redirect($CFG->wwwroot);
} else {
- redirect("view.php?id=$cm->course#$sectionreturn");
+ redirect("view.php?id=$cm->course#section-$sectionreturn");
}
exit;
@@ -339,7 +339,7 @@
if (SITEID == $cm->course) {
redirect($CFG->wwwroot);
} else {
- redirect("view.php?id=$cm->course#$sectionreturn");
+ redirect("view.php?id=$cm->course#section-$sectionreturn");
}
exit;
@@ -362,7 +362,7 @@
if (SITEID == $cm->course) {
redirect($CFG->wwwroot);
} else {
- redirect("view.php?id=$cm->course#$sectionreturn");
+ redirect("view.php?id=$cm->course#section-$sectionreturn");
}
exit;
@@ -392,7 +392,7 @@
$USER->activitycopycourse = $cm->course;
$USER->activitycopyname = $instance->name;
- redirect("view.php?id=$cm->course#$sectionreturn");
+ redirect("view.php?id=$cm->course#section-$sectionreturn");
} else if (isset_param('cancelcopy') and confirm_sesskey()) { // value = course module
@@ -402,7 +402,7 @@
unset($USER->activitycopycourse);
unset($USER->activitycopyname);
- redirect("view.php?id=$courseid#$sectionreturn");
+ redirect("view.php?id=$courseid#section-$sectionreturn");
} else if (isset_param('delete') and confirm_sesskey()) { // value = course module
|