Permalink
Browse files

Merge branch 'm24_MDL-36421' of git://github.com/danmarsden/moodle in…

…to MOODLE_24_STABLE
  • Loading branch information...
2 parents bf14c15 + d8088a3 commit cf82c45de999f3fb872f83341c91c9afc2865bd4 @danpoltawski danpoltawski committed Jan 21, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/scorm/locallib.php
View
@@ -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";
}
?>

0 comments on commit cf82c45

Please sign in to comment.