Merge branch '1.11.x' of github.com:chamilo/chamilo-lms into 1.11.x

pull/2487/head
jmontoyaa 7 years ago
commit de2d30b0fa
  1. 2
      main/install/configuration.dist.php
  2. 4
      main/session/add_users_to_session.php

@ -675,3 +675,5 @@ $_configuration['gradebook_badge_sidebar'] = [
//$_configuration['show_all_sessions_on_my_course_page'] = true; //$_configuration['show_all_sessions_on_my_course_page'] = true;
// Redirect to home tool after uploading a student publication or a adding a comment // Redirect to home tool after uploading a student publication or a adding a comment
//$_configuration['allow_redirect_to_main_page_after_work_upload'] = false; //$_configuration['allow_redirect_to_main_page_after_work_upload'] = false;
// Empty the session student list when subscribing multiple users
//$_configuration['not_empty_session_student_list_for_multiple_subscription'] = false;

@ -330,12 +330,14 @@ if (isset($_POST['form_sent']) && $_POST['form_sent']) {
} }
if ($form_sent == 1) { if ($form_sent == 1) {
$notEmptyList = api_get_configuration_value('not_empty_session_student_list_for_multiple_subscription');
// Added a parameter to send emails when registering a user // Added a parameter to send emails when registering a user
SessionManager::subscribe_users_to_session( SessionManager::subscribe_users_to_session(
$id_session, $id_session,
$UserList, $UserList,
null, null,
true !$notEmptyList
); );
header('Location: resume_session.php?id_session='.$id_session); header('Location: resume_session.php?id_session='.$id_session);
exit; exit;

Loading…
Cancel
Save