$learnPath->mode = 'impress'; } $learnPath->updateCurrentLpFromSession(); require 'lp_view.php'; break; case 'switch_view_mode': if ($debug > 0) { error_log('New LP - switch_view_mode action triggered', 0); } if (!$lp_found) { error_log('New LP - No learnpath given for switch', 0); require 'lp_list.php'; } if (Security::check_token('get')) { Session::write('refresh', 1); $learnPath->update_default_view_mode(); $learnPath->updateCurrentLpFromSession(); } require 'lp_list.php'; break; case 'switch_force_commit': if ($debug > 0) { error_log('New LP - switch_force_commit action triggered', 0); } if (!$lp_found) { error_log('New LP - No learnpath given for switch', 0); require 'lp_list.php'; } Session::write('refresh', 1); $learnPath->update_default_scorm_commit(); $learnPath->updateCurrentLpFromSession();