Skip to content

Commit

Permalink
Export support for language-config.xml and exporting english.xml. Uns…
Browse files Browse the repository at this point in the history
…ure how to know what other files to export. Maybe a default.xml is the main file for the site, and 'probably' what the user wants to export.

git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/trunk@60 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
  • Loading branch information
juliantenney committed Jul 8, 2011
1 parent b2651c1 commit 64a0c22
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions website_code/php/scorm/export.php
Expand Up @@ -137,6 +137,28 @@

array_push($delete_file_array, $dir_path . "XMLEngine.swf");



/*
* Language support
*/

mkdir($dir_path . 'languages');
chmod($dir_path . 'languages', 0777);
array_push($delete_folder_array, $dir_path . 'languages');


copy($xerte_toolkits_site->root_file_path . "languages/language-config.xml", $dir_path . "languages/language-config.xml");

array_push($delete_file_array, $dir_path . "languages/language-config.xml");

copy($xerte_toolkits_site->root_file_path . "languages/english.xml", $dir_path . "languages/english.xml");

array_push($delete_file_array, $dir_path . "languages/english.xml");




if($scorm=="true"){

copy($dir_path . $row['template_name'] . ".rlt", $dir_path . "learningobject.rlo");
Expand Down

0 comments on commit 64a0c22

Please sign in to comment.