echo Display::return_message(get_lang('Recycle is finished'), 'confirm');
}
}
} elseif (Security::check_token('post') && (
} elseif (Security::check_token('post') && (
isset($_POST['recycle_option']) &&
isset($_POST['recycle_option']) &&
@ -104,15 +104,15 @@ if (Security::check_token('post') && (
} else {
} else {
echo Display::return_message(get_lang('Warning: using this tool, you will delete learning objects in your course. There is no UNDO possible. We advise you to create a <ahref="create_backup.php">backup</a> before.'), 'warning', false);
echo Display::return_message(get_lang('Warning: using this tool, you will delete learning objects in your course. There is no UNDO possible. We advise you to create a <ahref="create_backup.php">backup</a> before.'), 'warning', false);
$form = new FormValidator('recycle_course', 'post', api_get_self().'?'.api_get_cidreq());
$form = new FormValidator('recycle_course', 'post', api_get_self().'?'.api_get_cidreq());
$message .= '<p>'.get_lang('Deleting this area will permanently delete all the content (documents, links...) it contains and unregister all its members (not remove them from other courses). <p>Do you really want to delete the course?</p>').'<p>';
$email_body_admin .= "\n".get_lang('This course request can be approved on the following page:', $email_language).' '.api_get_path(WEB_CODE_PATH).'admin/course_request_edit.php?id='.$last_insert_id."\n";
$email_body_admin .= "\n".get_lang('The information about this course request is considered protected; it can be used only to open a new course within our e-learning portal; it should not be revealed to third parties.', $email_language)."\n";
$email_body_teacher .= "\n".get_lang('The information about this course request is considered protected; it can be used only to open a new course within our e-learning portal; it should not be revealed to third parties.', $email_language)."\n";
// Swap the sender and the recipient.
// Swap the sender and the recipient.
$sender_name_admin = $recipient_name_admin;
$sender_name_admin = $recipient_name_admin;
@ -492,12 +492,12 @@ class CourseRequestManager
// E-mail language: The platform language seems to be the best choice
// E-mail language: The platform language seems to be the best choice
'Your course request %s has been approved. A new course %s has been created and you are registered in it as a teacher.\n\nYou can access your newly created course from: %s',
$email_body .= "\n".get_lang('The information about this course request is considered protected; it can be used only to open a new course within our e-learning portal; it should not be revealed to third parties.', $email_language)."\n";
$sender_name = api_get_person_name(
$sender_name = api_get_person_name(
api_get_setting('administratorName'),
api_get_setting('administratorName'),
@ -598,17 +597,17 @@ class CourseRequestManager
// E-mail language: The platform language seems to be the best choice.
// E-mail language: The platform language seems to be the best choice.
$email_body .= sprintf(get_lang('To our regret we have to inform you that your course request %s has been rejected due to not fulfilling the requirements of our Terms and Conditions.', $email_language), $code)."\n";
$email_body .= "\n".get_lang('The information about this course request is considered protected; it can be used only to open a new course within our e-learning portal; it should not be revealed to third parties.', $email_language)."\n";
$sender_name = api_get_person_name(
$sender_name = api_get_person_name(
api_get_setting('administratorName'),
api_get_setting('administratorName'),
@ -676,17 +675,17 @@ class CourseRequestManager
// E-mail language: The platform language seems to be the best choice.
// E-mail language: The platform language seems to be the best choice.
$email_subject = sprintf(get_lang('%s A request for additional information about the course request %s', $email_language), '['.api_get_setting('siteName').']', $code);
$email_body .= sprintf(get_lang('We have received your request for a new course with code %s. Before we consider it for approval, we need some additional information.\n\nPlease, provide brief information about the course content (description), the objectives, the learners or the users that are to be involved in the proposed course. If it is applicable, mention the name of the institution or the unit on which behalf you made the course request.', $email_language), $code)."\n";
$email_body .= "\n".get_lang('The information about this course request is considered protected; it can be used only to open a new course within our e-learning portal; it should not be revealed to third parties.', $email_language)."\n";
msgid "Deleting this area will permanently delete all the content (documents, links...) it contains and unregister all its members (not remove them from other courses). <p>Do you really want to delete the course?"
msgid "Deleting this area will permanently delete all the content (documents, links...) it contains and unregister all its members (not remove them from other courses). <p>Do you really want to delete the course?"
msgstr "Deleting this area will permanently delete all the content (documents, links...) it contains and unregister all its members (not remove them from other courses). <p>Do you really want to delete the course?"
msgstr "Deleting this course will permanently delete all the content (documents, links...) it contains and unregister all its members (not remove them from other courses). <p>Do you really want to delete the course?</p>"