diff --git a/main/create_course/add_course.php b/main/create_course/add_course.php index c10a90f97f..ef01e6f879 100644 --- a/main/create_course/add_course.php +++ b/main/create_course/add_course.php @@ -1,5 +1,5 @@ add_textfield('tutor_name', get_lang('Professors'),true,array( $form->addElement('select_language', 'course_language', get_lang('Ln')); $form->addElement('submit', null, get_lang('Ok')); $form->add_progress_bar(); + // Set default values -$values['course_language'] = get_setting('platformLanguage'); +if(isset($_user["language"]) && $_user["language"]!=""){ + $values['course_language'] = $_user["language"]; +} +else{ + $values['course_language'] = get_setting('platformLanguage'); +} + $values['tutor_name'] = $_user['lastName']." ".$_user['firstName']; $form->setDefaults($values); // Validate the form