]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16060 use old style slasharguments file.php link when launching scorm packages
authorskodak <skodak>
Mon, 18 Aug 2008 20:56:58 +0000 (20:56 +0000)
committerskodak <skodak>
Mon, 18 Aug 2008 20:56:58 +0000 (20:56 +0000)
mod/scorm/loadSCO.php

index 068be1c44205485fe6a4c996378af9bc9f37687e..1f9dc79bc6aefc760d227e37875a1b04e0354c09 100755 (executable)
             } 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;
         }
     }