Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'wip-mdl-32526-m24' of git://github.com/rajeshtaneja/moo…

…dle into MOODLE_24_STABLE
  • Loading branch information...
commit 13d03939a67927e6443d157e8b313b7a3232380a 2 parents 83d4aee + 3fc3fcd
@danpoltawski danpoltawski authored
Showing with 2 additions and 10 deletions.
  1. +2 −10 course/edit.php
View
12 course/edit.php
@@ -135,16 +135,8 @@
update_course($data, $editoroptions);
}
- switch ($returnto) {
- case 'category':
- case 'topcat': //redirecting to where the new course was created by default.
- $url = new moodle_url($CFG->wwwroot.'/course/category.php', array('id'=>$categoryid));
- break;
- default:
- $url = new moodle_url($CFG->wwwroot.'/course/view.php', array('id'=>$course->id));
- break;
- }
- redirect($url);
+ // Redirect user to newly created/updated course.
+ redirect(new moodle_url('/course/view.php', array('id' => $course->id)));
}
Please sign in to comment.
Something went wrong with that request. Please try again.