Permalink
Browse files

Merge branch 'm20_MDL-28016' of git://github.com/danmarsden/moodle in…

…to MOODLE_20_STABLE
  • Loading branch information...
2 parents 746f1ac + a26a8c6 commit 9d12edfcae25ca128a31f63fc4037f829ace30a6 @stronk7 stronk7 committed Jun 29, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/scorm/locallib.php
@@ -696,7 +696,8 @@ function scorm_course_format_display($user,$course) {
} else {
if (has_capability('moodle/course:update', $context)) {
// Create a new activity
- redirect($CFG->wwwroot.'/course/mod.php?id='.$course->id.'&section=0&sesskey='.sesskey().'&add=scorm');
+ $url = new moodle_url('/course/mod.php', array('id'=>$course->id, 'section'=>'0', 'sesskey'=>sesskey(),'add'=>'scorm'));
+ redirect($url);
} else {
echo $OUTPUT->notification('Could not find a scorm course here');
}

0 comments on commit 9d12edf

Please sign in to comment.