$dialogBox->success(get_lang('The information have been modified')); if (!$adminContext) { // force reload of the "course session" of the user $cidReset = true; $cidReq = $current_cid; include get_path('incRepositorySys') . '/claro_init_local.inc.php'; } } else { $dialogBox->error(get_lang('Unable to save')); } } else { $dialogBox->error($course->backlog->output()); } } if ($cmd == 'exDelete') { if ($course->delete()) { $claroline->log('DELETION COURSE', array('courseName' => $course->title, 'uid' => claro_get_current_user_id())); if ($adminContext) { claro_redirect(get_path('rootAdminWeb') . '/admin_courses.php'); } else { claro_redirect(get_path('url') . '/index.php'); } } else { $dialogBox->error(get_lang('Unable to delete')); } } if ($cmd == 'rqDelete') { $display = DISP_COURSE_RQ_DELETE; } } else { // course data load failed