From db29e45a480d1e341ada2751a9609a68d9f206de Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Mon, 30 Apr 2007 05:06:43 +0200 Subject: [PATCH] [svn r12178] Removed deprecated code --- main/newscorm/lp_controller.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/main/newscorm/lp_controller.php b/main/newscorm/lp_controller.php index b9b5b83d56..25971a9b0c 100644 --- a/main/newscorm/lp_controller.php +++ b/main/newscorm/lp_controller.php @@ -458,19 +458,6 @@ switch($_REQUEST['action']) require('lp_list.php'); } break; - /*case 'add_lp': - if($debug>0) error_log('New LP - add_lp action triggered',0); - - //call learnpath creation abstract method with course_id, learnpath_name, learnpath_description, type_of_lp, origin_of_creation, file_name - if(!empty($_REQUEST['learnpath_name'])){ - $_SESSION['refresh'] = 1; - $new_lp_id = learnpath::add_lp(api_get_course_id(),$_REQUEST['learnpath_name'],$_REQUEST['learnpath_description'],'dokeos','manual',''); - //TODO maybe create a first module directly to avoid bugging the user with useless queries - $_SESSION['oLP'] = new learnpath(api_get_course_id(),$new_lp_id,api_get_user_id()); - $_SESSION['oLP']->add_item(0,-1,'dokeos_chapter',$_REQUEST['path'],'Default'); - } - require('lp_list.php'); - break;*/ case 'add_sub_item': //add an item inside a chapter if($debug>0) error_log('New LP - add sub item action triggered',0); if(!$lp_found){ error_log('New LP - No learnpath given for add sub item',0); require('lp_list.php'); }