Skip to content

Commit cf03073

Browse files
committed
Create "/certificates" folder when creating course
In order to avoid issues when creating a course and different sessions BT#15609
1 parent c39dfa4 commit cf03073

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/inc/lib/add_course.lib.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,7 @@ public static function fill_db_course(
704704
$files = [
705705
['path' => '/shared_folder', 'title' => get_lang('UserFolders'), 'filetype' => 'folder', 'size' => 0],
706706
['path' => '/chat_files', 'title' => get_lang('ChatFiles'), 'filetype' => 'folder', 'size' => 0],
707+
['path' => '/certificates', 'title' => get_lang('CertificatesFiles'), 'filetype' => 'folder', 'size' => 0],
707708
];
708709

709710
$counter = 1;
@@ -730,7 +731,6 @@ public static function fill_db_course(
730731
['path' => '/audio', 'title' => get_lang('Audio'), 'filetype' => 'folder', 'size' => 0],
731732
['path' => '/flash', 'title' => get_lang('Flash'), 'filetype' => 'folder', 'size' => 0],
732733
['path' => '/video', 'title' => get_lang('Video'), 'filetype' => 'folder', 'size' => 0],
733-
['path' => '/certificates', 'title' => get_lang('Certificates'), 'filetype' => 'folder', 'size' => 0],
734734
];
735735

736736
foreach ($files as $file) {

0 commit comments

Comments
 (0)