Browse Source

[svn r11432] Updated 'export' action to link to learnpath::scorm_export()

Yannick Warnier 18 years ago
parent
commit
d218ae0076
1 changed files with 4 additions and 3 deletions
  1. 4 3
      main/newscorm/lp_controller.php

+ 4 - 3
main/newscorm/lp_controller.php

@@ -410,10 +410,11 @@ switch($_REQUEST['action'])
 		if($debug>0) error_log('New LP - export action triggered',0);
 		if(!$lp_found){ error_log('New LP - No learnpath given for export',0); require('lp_list.php'); }
 		else{
-			if($_SESSION['oLP']->get_type()==2){
+			/*if($_SESSION['oLP']->get_type()==2){
 				$_SESSION['oLP']->export_zip();
-			}
-			//require('lp_list.php'); 
+			}*/
+			$_SESSION['oLP']->scorm_export();
+			require('lp_list.php'); 
 		}
 		break;
 	case 'delete':