Skip to content

Commit

Permalink
MDL-36421 SCORM: fix SCORM course format new window popups
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Johnson authored and danmarsden committed Jan 15, 2013
1 parent ca48fe5 commit 7536464
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/scorm/locallib.php
Expand Up @@ -834,7 +834,7 @@ function scorm_course_format_display($user, $course) {
}

function scorm_view_display ($user, $scorm, $action, $cm) {
global $CFG, $DB, $PAGE, $OUTPUT;
global $CFG, $DB, $PAGE, $OUTPUT, $COURSE;

if ($scorm->scormtype != SCORM_TYPE_LOCAL && $scorm->updatefreq == SCORM_UPDATE_EVERYTIME) {
scorm_parse($scorm, false);
Expand Down Expand Up @@ -913,7 +913,7 @@ function scorm_view_display ($user, $scorm, $action, $cm) {
<label for="a"><?php print_string('newattempt', 'scorm') ?></label>
<?php
}
if (!empty($scorm->popup)) {
if ($COURSE->format != 'scorm' && !empty($scorm->popup)) {
echo '<input type="hidden" name="display" value="popup" />'."\n";
}
?>
Expand Down

0 comments on commit 7536464

Please sign in to comment.