Skip to content

Commit

Permalink
Merge branch 'm35_MDL-63727_Wrong_SCO_Launched_Link' of https://githu…
Browse files Browse the repository at this point in the history
…b.com/scara/moodle into MOODLE_35_STABLE
  • Loading branch information
andrewnicols committed Oct 31, 2018
2 parents bf1b7ef + b193f77 commit 1da0d64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mod/scorm/classes/event/sco_launched.php
Expand Up @@ -76,7 +76,7 @@ public static function get_name() {
* @return \moodle_url
*/
public function get_url() {
return new \moodle_url('/mod/scorm/player.php', array('id' => $this->contextinstanceid, 'scoid' => $this->objectid));
return new \moodle_url('/mod/scorm/player.php', array('cm' => $this->contextinstanceid, 'scoid' => $this->objectid));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion mod/scorm/tests/externallib_test.php
Expand Up @@ -855,7 +855,7 @@ public function test_launch_sco() {
// Checking that the event contains the expected values.
$this->assertInstanceOf('\mod_scorm\event\sco_launched', $event);
$this->assertEquals($this->context, $event->get_context());
$moodleurl = new \moodle_url('/mod/scorm/player.php', array('id' => $this->cm->id, 'scoid' => $sco->id));
$moodleurl = new \moodle_url('/mod/scorm/player.php', array('cm' => $this->cm->id, 'scoid' => $sco->id));
$this->assertEquals($moodleurl, $event->get_url());
$this->assertEventContextNotUsed($event);
$this->assertNotEmpty($event->get_name());
Expand Down

0 comments on commit 1da0d64

Please sign in to comment.