예제 #1
0
         $learnPath->updateCurrentLpFromSession();
         require 'lp_view.php';
     }
     break;
 case 'content':
     if ($debug > 0) {
         error_log('New LP - content action triggered', 0);
     }
     if ($debug > 0) {
         error_log('New LP - Item id is ' . intval($_GET['item_id']), 0);
     }
     if (!$lp_found) {
         error_log('New LP - No learnpath given for content', 0);
         require 'lp_list.php';
     } else {
         $learnPath->save_last();
         $learnPath->set_current_item($_GET['item_id']);
         $learnPath->start_current_item();
         $learnPath->updateCurrentLpFromSession();
         require 'lp_content.php';
     }
     break;
 case 'view':
     if ($debug > 0) {
         error_log('New LP - view action triggered', 0);
     }
     if (!$lp_found) {
         error_log('New LP - No learnpath given for view', 0);
         require 'lp_list.php';
     } else {
         if ($debug > 0) {