From ba7a42903eba37cbd42e82d6add003c2b48e3d1a Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Fri, 29 Apr 2016 11:36:52 +0000 Subject: [PATCH] #scorm : set default scorm_id (fb_xxxx) & scorm_org (Fluidbook) @0:05 --- inc/ws/Util/html5/class.ws.html5.compiler.php | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- 2.39.5