From b8dddc9e37a153923013cb96642c63584ad147bc Mon Sep 17 00:00:00 2001 From: skodak Date: Mon, 18 Aug 2008 20:56:58 +0000 Subject: [PATCH] MDL-16060 use old style slasharguments file.php link when launching scorm packages --- mod/scorm/loadSCO.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mod/scorm/loadSCO.php b/mod/scorm/loadSCO.php index 068be1c442..1f9dc79bc6 100755 --- a/mod/scorm/loadSCO.php +++ b/mod/scorm/loadSCO.php @@ -108,8 +108,10 @@ } else { $basedir = $CFG->moddata.'/scorm/'.$scorm->id; } - require_once($CFG->libdir.'/filelib.php'); - $result = get_file_url($scorm->course .'/'. $basedir .'/'. $launcher); + //note: do not convert this to use get_file_url()! + // SCORM does not work without slasharguments anyway and there might be some extra ?xx=yy params + // see MDL-16060 + $result = $CFG->wwwroot.'/file.php/'.$scorm->course.'/'.$basedir.'/'.$launcher; } } -- 2.39.5