From: vincent@cubedesigners.com Date: Fri, 29 Apr 2016 11:36:52 +0000 (+0000) Subject: #scorm : set default scorm_id (fb_xxxx) & scorm_org (Fluidbook) @0:05 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=ba7a42903eba37cbd42e82d6add003c2b48e3d1a;p=cubeextranet.git #scorm : set default scorm_id (fb_xxxx) & scorm_org (Fluidbook) @0:05 --- diff --git a/inc/ws/Util/html5/class.ws.html5.compiler.php b/inc/ws/Util/html5/class.ws.html5.compiler.php index 472b4158b..fe563d071 100644 --- a/inc/ws/Util/html5/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/class.ws.html5.compiler.php @@ -592,6 +592,12 @@ class wsHTML5Compiler { if (!$this->book->parametres->scorm_title) { $this->book->parametres->scorm_title = $this->book->parametres->title; } + if (!$this->book->parametres->scorm_id) { + $this->book->parametres->scorm_id = 'fb_' . $this->book->parametres->id; + } + if (!$this->book->parametres->scorm_org) { + $this->book->parametres->scorm_org = 'Fluidbook'; + } $vars = array('scorm_id', 'scorm_org', 'scorm_title'); foreach ($vars as $v) { $manifest = str_replace('$' . $v, $this->book->parametres->$v, $manifest);