Merge branch 'master_MDL-28016' of git://github.com/danmarsden/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2011-06-30 01:10:51 +02:00
commit ca2b89d5df

View File

@ -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');
}