return $this->loadingCompile($url, $id, $hash);
}
+ if ($collection->type === "scorm_multilang") {
+ $version = 'scorm';
+ }
+
return $this->preview($version, $collection, $theme, $path);
}
$nointerface = !!request('nointerface', false);
$shortLoading = !!request('shortLoading', false);
- $isScorm = $version === 'scorm';
-
- $dest = $collection->getFinalPath() . $collection->type . '/online';
+ $dest = $collection->getFinalPath() . $collection->type . '/' . $version;
if ($path === 'index.html') {
$collection->incrementPreviewVisit();
$compiler = new FluidbookCollectionDownload($collection, 'export', backpack_user());