From 4ea5020518e0801eda5014f07d8a43c3e7ebbc93 Mon Sep 17 00:00:00 2001 From: Carlos Vargas Date: Thu, 12 Nov 2009 14:43:29 -0500 Subject: [PATCH] changes DT#3489 --- main/inc/lib/add_course.lib.inc.php | 7 ++++++- main/install/dokeos_main.sql | 2 +- main/install/migrate-db-1.8.6.1-1.8.6.2-pre.sql | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/main/inc/lib/add_course.lib.inc.php b/main/inc/lib/add_course.lib.inc.php index 57cab7f3b0..7d67fd49b3 100644 --- a/main/inc/lib/add_course.lib.inc.php +++ b/main/inc/lib/add_course.lib.inc.php @@ -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); } diff --git a/main/install/dokeos_main.sql b/main/install/dokeos_main.sql index 9b083eff41..a22ef6dc01 100644 --- a/main/install/dokeos_main.sql +++ b/main/install/dokeos_main.sql @@ -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 */; diff --git a/main/install/migrate-db-1.8.6.1-1.8.6.2-pre.sql b/main/install/migrate-db-1.8.6.1-1.8.6.2-pre.sql index ca51029652..ee732a3701 100755 --- a/main/install/migrate-db-1.8.6.1-1.8.6.2-pre.sql +++ b/main/install/migrate-db-1.8.6.1-1.8.6.2-pre.sql @@ -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');