~ubuntu-branches/ubuntu/natty/moodle/natty

« back to all changes in this revision

Viewing changes to mod/scorm/loadSCO.php

  • Committer: Bazaar Package Importer
  • Author(s): Tomasz Muras
  • Date: 2010-10-30 12:19:28 UTC
  • mfrom: (1.1.12 upstream) (3.1.10 squeeze)
  • Revision ID: james.westby@ubuntu.com-20101030121928-qzobi6mctpnk4dif
Tags: 1.9.9.dfsg2-2
* Added Romanian translation
* Updated Japanese translation (closes: #596820)
* Backporting security fixes from Moodle 1.9.10 (closes: #601384)
   - Updated embedded CAS to 1.1.3
   - Added patch for MDL-24523:
     clean_text() not filtering text in markdown format
   - Added patch for MDL-24810 and upgraded customized HTML Purifier to 4.2.0 
   - Added patch for MDL-24258:
     students can delete their forum posts later than $CFG->maxeditingtime 
     under certain conditions
   - Added patch for MDL-23377:
     Can't delete quiz attempts in course without enrolled students

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php  // $Id: loadSCO.php,v 1.33.4.10 2008/12/09 20:38:28 danmarsden Exp $
 
1
<?php  // $Id: loadSCO.php,v 1.33.4.11 2010/01/13 22:42:03 danmarsden Exp $
2
2
    require_once('../../config.php');
3
3
    require_once('locallib.php');
4
4
 
78
78
    }
79
79
 
80
80
    if ($version == 'AICC') {
 
81
        $sco_params = '';
81
82
        if (isset($sco->parameters) && (!empty($sco->parameters))) {
82
 
            $sco->parameters = '&'. $sco->parameters;
 
83
            $sco_params = '&'. $sco->parameters;
83
84
        }
84
 
        $launcher = $sco->launch.$connector.'aicc_sid='.sesskey().'&aicc_url='.$CFG->wwwroot.'/mod/scorm/aicc.php'.$sco->parameters;
 
85
        $launcher = $sco->launch.$connector.'aicc_sid='.sesskey().'&aicc_url='.$CFG->wwwroot.'/mod/scorm/aicc.php'.$sco_params;
85
86
    } else {
86
87
        if (isset($sco->parameters) && (!empty($sco->parameters))) {
87
88
            $launcher = $sco->launch.$connector.$sco->parameters;