Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-36421 SCORM: fix SCORM course format new window popups

  • Loading branch information...
commit 7536464d6113582465af3f0cf952e502aa5b9d0c 1 parent ca48fe5
Ben Johnson authored danmarsden committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/scorm/locallib.php
View
4 mod/scorm/locallib.php
@@ -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);
@@ -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";
}
?>
Please sign in to comment.
Something went wrong with that request. Please try again.