changes DT#3489

skala
Carlos Vargas 16 years ago
parent 36e5eeabb8
commit 4ea5020518
  1. 7
      main/inc/lib/add_course.lib.inc.php
  2. 2
      main/install/dokeos_main.sql
  3. 2
      main/install/migrate-db-1.8.6.1-1.8.6.2-pre.sql

@ -2428,7 +2428,12 @@ function register_course($courseSysCode, $courseScreenCode, $courseRepository, $
$urlsite = api_get_path(WEB_PATH);
$iname = api_get_setting('Institution');
$subject=get_lang('NewCourseCreatedIn').' '.$siteName.' - '.$iname;
$message=sprintf(get_lang('MessageOfNewCourseToAdmin'),$recipient_name, $siteName,$iname,$title,$category,$titular,$course_language);
$message = get_lang('Dear').' '.$recipient_name.' '.get_lang('MessageOfNewCourseToAdmin').$siteName.' - '.$iname.'\n';
$message .= get_lang('CourseName').' '.$title.'\n';
$message .= get_lang('Category').' '.$category.'\n';
$message .= get_lang('Tutor').' '.$titular.'\n';
$message .= get_lang('Language').' '.$course_language;
api_mail($recipient_name, $recipient_email, $subject, $message,$siteName,$recipient_email);
}

@ -734,7 +734,7 @@ VALUES
('allow_coach_to_edit_course_session',NULL,'radio','Course','false','AllowCoachsToEditInsideTrainingSessions','AllowCoachsToEditInsideTrainingSessionsComment',NULL,NULL, 0),
('show_glossary_in_extra_tools', NULL, 'radio', 'Course', 'false', 'ShowGlossaryInExtraToolsTitle', 'ShowGlossaryInExtraToolsComment', NULL, NULL,1),
('dokeos_database_version', NULL, 'textfield', NULL,'1.8.6.1.8565','DokeosDatabaseVersion','',NULL,NULL,0),
('send_email_to_admin_when_create_course',NULL,'radio','Platform','true','SendEmailToAdminTitle','SendEmailToAdminComment',NULL,NULL, 1);
('send_email_to_admin_when_create_course',NULL,'radio','Platform','false','SendEmailToAdminTitle','SendEmailToAdminComment',NULL,NULL, 1);
UNLOCK TABLES;
/*!40000 ALTER TABLE settings_current ENABLE KEYS */;

@ -37,7 +37,7 @@ INSERT INTO settings_options (variable, value, display_text) VALUES ('show_gloss
CREATE TABLE user_tag (id int NOT NULL auto_increment, tag varchar(255) NOT NULL, field_id int NOT NULL, count int NOT NULL, PRIMARY KEY (id));
CREATE TABLE user_rel_tag (id int NOT NULL auto_increment,user_id int NOT NULL,tag_id int NOT NULL, PRIMARY KEY (id));
INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('send_email_to_admin_when_create_course',NULL,'radio','Platform','true','SendEmailToAdminTitle','SendEmailToAdminComment',NULL,NULL, 1);
INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('send_email_to_admin_when_create_course',NULL,'radio','Platform','false','SendEmailToAdminTitle','SendEmailToAdminComment',NULL,NULL, 1);
INSERT INTO settings_options (variable, value, display_text) VALUES ('send_email_to_admin_when_create_course','true','Yes');
INSERT INTO settings_options (variable, value, display_text) VALUES ('send_email_to_admin_when_create_course','false','No');

Loading…
Cancel
Save