Skip to content

Commit ef1e71f

Browse files
committed
Maintenance: CommonCartridge: Add configuration setting 'commoncartridge_path_token' to allow for the previously recommended special path token when exporting to Common Cartridge packages - refs BT#21709
1 parent 1ace981 commit ef1e71f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

main/common_cartridge/export/src/utils/CcHelpers.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,10 @@ public static function processLinkedFiles(
288288
$courseDir = $internalCourseDocumentsPath = null;
289289
$courseInfo = api_get_course_info();
290290
$replaceprefix = '$1EdTech-CC-FILEBASE$';
291+
$tokenSyntax = api_get_configuration_value('commoncartridge_path_token');
292+
if (!empty($tokenSyntax)) {
293+
$replaceprefix = $tokenSyntax;
294+
}
291295
if (!empty($courseInfo)) {
292296
$courseDir = $courseInfo['directory'];
293297
$internalCourseDocumentsPath = '/courses/'.$courseDir.'/document';

main/install/configuration.dist.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2561,3 +2561,9 @@
25612561

25622562
// Define the default time in seconds to be registered if the user does logout from a course and there is no recent entry in track_e_course_access.
25632563
//$_configuration['tracking_default_course_extra_time_on_logout'] = 600;
2564+
2565+
// Define a special path token for the Common Cartridge export content.
2566+
// Due to changes in naming by the responsible organization, the Chamilo default
2567+
// is '$1EdTech-CC-FILEBASE$' (the latest), but previous versions of the standard
2568+
// recommended '$IMS-CC-FILEBASE$', so you might want to use that for greater compatibility.
2569+
//$_configuration['commoncartridge_path_token'] = '$IMS-CC-FILEBASE$';

0 commit comments

Comments
 (0)