|
|
@ -148,14 +148,20 @@ if ($course_validation_feature) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Course language. |
|
|
|
// Course language. |
|
|
|
$form->addElement( |
|
|
|
$languages = api_get_languages(); |
|
|
|
'select_language', |
|
|
|
if (count($languages['name']) === 1) { |
|
|
|
'course_language', |
|
|
|
// If there's only one language available, there's no point in asking |
|
|
|
get_lang('Ln'), |
|
|
|
$form->addElement('hidden', 'course_language', $languages['folder'][0]); |
|
|
|
array(), |
|
|
|
} else { |
|
|
|
array('style' => 'width:150px') |
|
|
|
$form->addElement( |
|
|
|
); |
|
|
|
'select_language', |
|
|
|
$form->applyFilter('select_language', 'html_filter'); |
|
|
|
'course_language', |
|
|
|
|
|
|
|
get_lang('Ln'), |
|
|
|
|
|
|
|
array(), |
|
|
|
|
|
|
|
array('style' => 'width:150px') |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
$form->applyFilter('select_language', 'html_filter'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Exemplary content checkbox. |
|
|
|
// Exemplary content checkbox. |
|
|
|
$form->addElement( |
|
|
|
$form->addElement( |
|
|
|