From 444ff001a1a8fc3a2bb6d2789ebfcd01453fa344 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Wed, 29 Jun 2011 20:31:19 +1200 Subject: [PATCH] SCORM MDL-28016 - fix redirect call to use proper moodle_url --- mod/scorm/locallib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod/scorm/locallib.php b/mod/scorm/locallib.php index 67b89873089..d1e3bf1c1b6 100644 --- a/mod/scorm/locallib.php +++ b/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'); }