Skip to content
Browse files

Merge branch 'MDL-26730' of git://github.com/timhunt/moodle

  • Loading branch information...
2 parents b5686d0 + b053dca commit 5cd0d27089c766cb35eca7f854560f5dcac4b268 @stronk7 stronk7 committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 course/modedit.php
View
8 course/modedit.php
@@ -325,7 +325,7 @@
}
if (!$updateinstancefunction($fromform, $mform)) {
- print_error('cannotupdatemod', '', 'view.php?id=$course->id', $fromform->modulename);
+ print_error('cannotupdatemod', '', "view.php?id={$course->id}#section-{$cw->section}", $fromform->modulename);
}
// make sure visibility is set correctly (in particular in calendar)
@@ -416,9 +416,9 @@
$DB->delete_records('course_modules', array('id'=>$fromform->coursemodule));
if (!is_number($returnfromfunc)) {
- print_error('invalidfunction', '', 'view.php?id=$course->id');
+ print_error('invalidfunction', '', "view.php?id={$course->id}#section-{$cw->section}");
} else {
- print_error('cannotaddnewmodule', '', "view.php?id=$course->id", $fromform->modulename);
+ print_error('cannotaddnewmodule', '', "view.php?id={$course->id}#section-{$cw->section}", $fromform->modulename);
}
}
@@ -568,7 +568,7 @@
if (isset($fromform->submitbutton)) {
redirect("$CFG->wwwroot/mod/$module->name/view.php?id=$fromform->coursemodule");
} else {
- redirect("$CFG->wwwroot/course/view.php?id=$course->id");
+ redirect("$CFG->wwwroot/course/view.php?id={$course->id}#section-{$cw->section}");
}
exit;

0 comments on commit 5cd0d27

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