Skip to content

Commit

Permalink
SCORM MDL-28016 - fix redirect call to use proper moodle_url
Browse files Browse the repository at this point in the history
  • Loading branch information
danmarsden committed Jun 29, 2011
1 parent 7fde489 commit 444ff00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mod/scorm/locallib.php
Expand Up @@ -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');
}
Expand Down

0 comments on commit 444ff00

Please sign in to comment.