Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix export of SCORM 1.2 package
  • Loading branch information
torinfo committed Nov 28, 2014
1 parent 24ccc96 commit 7b42ad2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions editor/js/vendor/ckeditor/plugins/xotmarkword/plugin.js
@@ -0,0 +1,3 @@
/**
* Created by tom on 22-11-2014.
*/
7 changes: 5 additions & 2 deletions modules/xerte/export.php
Expand Up @@ -50,6 +50,9 @@
$scorm2004_language_relpath = $xerte_toolkits_site->module_path . $row['template_framework'] . "/scorm2004.3rd/";
$js_path = $xerte_toolkits_site->basic_template_path . $row['template_framework'] . "/js/";

$export_html5 = false;
$export_flash = false;

if (isset($_REQUEST['html5'])) {
$export_html5 = ($_REQUEST['html5'] == 'true' ? true : false);
}
Expand Down Expand Up @@ -251,8 +254,8 @@
$query = "SELECT * FROM {$prefix}templatesyndication WHERE template_id = ? ";
$metadata = db_query_one($query, array($_GET['template_id']));

$query = "SELECT * FROM {$prefix}templaterights "
. "{$prefix}logindetails WHERE template_id = ? and login_id = user_id ";
$query = "SELECT * FROM {$prefix}templaterights t, "
. "{$prefix}logindetails l WHERE t.template_id = ? and t.user_id = l.login_id ";

$params = array($_GET['template_id']);

Expand Down

0 comments on commit 7b42ad2

Please sign in to comment.