|
@@ -8,9 +8,17 @@
|
|
|
|
|
|
* Process the SCORM package and return to the SCORM tool
|
|
|
*/
|
|
|
+$language_file = "scorm";
|
|
|
$cwdir = getcwd();
|
|
|
require('../newscorm/lp_upload.php');
|
|
|
|
|
|
chdir($cwdir);
|
|
|
-header('location: ../newscorm/lp_controller.php?action=list&dialog_box='.urlencode(get_lang('UplUploadSucceeded')));
|
|
|
+$error = api_failure::get_last_failure();
|
|
|
+if($error=='not_a_learning_path')
|
|
|
+{
|
|
|
+ $msg = urlencode(get_lang('UnknownPackageFormat'));
|
|
|
+}else{
|
|
|
+ $msg = urlencode(get_lang('UplUploadSucceeded'));
|
|
|
+}
|
|
|
+header('location: ../newscorm/lp_controller.php?action=list&dialog_box='.$msg);
|
|
|
?>
|