require 'lp_list.php'; } else { $learnPath->save_item(); $learnPath->updateCurrentLpFromSession(); require 'lp_save.php'; } break; case 'stats': if ($debug > 0) { error_log('New LP - stats action triggered', 0); } if (!$lp_found) { error_log('New LP - No learnpath given for stats', 0); require 'lp_list.php'; } else { $learnPath->save_current(); $learnPath->save_last(); $learnPath->updateCurrentLpFromSession(); $output = (require 'lp_stats.php'); echo $output; } break; case 'list': if ($debug > 0) { error_log('New LP - list action triggered', 0); } if ($lp_found) { Session::write('refresh', 1); $learnPath->save_last(); $learnPath->updateCurrentLpFromSession(); }