Skip to content

Commit e8a4ed4

Browse files
committed
Internal: Rename My_course_course_extrafields_to_be_presented to my_course_course_extrafields_to_be_presented
1 parent 47fc147 commit e8a4ed4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

main/inc/lib/course.lib.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3369,7 +3369,7 @@ public static function get_course_extra_field_value($variable, $code)
33693369

33703370
/**
33713371
* Gets extra field value data and formatted values of a course
3372-
* for extra fields listed in configuration.php in My_course_course_extrafields_to_be_presented
3372+
* for extra fields listed in configuration.php in my_course_course_extrafields_to_be_presented
33733373
* (array of variables as value of key 'fields').
33743374
*
33753375
* @param $courseId int The numeric identifier of the course
@@ -3379,7 +3379,7 @@ public static function get_course_extra_field_value($variable, $code)
33793379
public static function getExtraFieldsToBePresented($courseId)
33803380
{
33813381
$extraFields = [];
3382-
$fields = api_get_configuration_sub_value('My_course_course_extrafields_to_be_presented/fields');
3382+
$fields = api_get_configuration_sub_value('my_course_course_extrafields_to_be_presented/fields');
33833383
if (!empty($fields) && is_array($fields)) {
33843384
$extraFieldManager = new ExtraField('course');
33853385
$dataAndFormattedValues = $extraFieldManager->getDataAndFormattedValues($courseId);

main/install/configuration.dist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1495,7 +1495,7 @@
14951495
*/
14961496

14971497
// Page "My Courses" shows specific course extra fields (CourseManager::getExtraFieldsToBePresented)
1498-
/*$_configuration['My_course_course_extrafields_to_be_presented'] = [
1498+
/*$_configuration['my_course_course_extrafields_to_be_presented'] = [
14991499
'fields' => ['mots_cles', 'duree_en_min', 'format'],
15001500
];*/
15011501

0 commit comments

Comments
 (0)