mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 12:34:28 +01:00
Merge branch 'master_MDL-28016' of git://github.com/danmarsden/moodle
This commit is contained in:
commit
ca2b89d5df
@ -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');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user