Permalink
Browse files

SCORM MDL-26450 fix undefined pkgtype warning (ONLY REQUIRED IN 1.9 S…

…TABLE BRANCH)
  • Loading branch information...
1 parent 8be4ad9 commit ac9387b0491730eb39370c26c598b7598257fee4 @danmarsden danmarsden committed Apr 13, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 mod/scorm/locallib.php
View
@@ -730,6 +730,11 @@ function scorm_simple_play($scorm,$user, $context) {
$result = false;
if ($scorm->updatefreq == UPDATE_EVERYTIME) {
+ if (strpos($scorm->version, 'AICC') !== false) {
+ $scorm->pkgtype = 'AICC';
+ } else {
+ $scorm->pkgtype = 'SCORM';
+ }
scorm_parse($scorm);
}
if (has_capability('mod/scorm:viewreport', $context)) { //if this user can view reports, don't skipview so they can see links to reports.

0 comments on commit ac9387b

Please sign in to comment.