|
|
|
|
@ -645,7 +645,20 @@ if (isset($document_data) && $document_data['path'] == '/certificates') { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (!$parent_id) { |
|
|
|
|
$testParentId = 0; |
|
|
|
|
// Get parent id from current path |
|
|
|
|
if (!empty($document_data['path'])) { |
|
|
|
|
$testParentId = DocumentManager::get_document_id( |
|
|
|
|
api_get_course_info(), |
|
|
|
|
dirname($document_data['path']), |
|
|
|
|
0 |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$parent_id = 0; |
|
|
|
|
if (!empty($testParentId)) { |
|
|
|
|
$parent_id = $testParentId; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$current_folder_id = $document_id; |
|
|
|
|
|