Adding document path when editing a LP item see #5253

skala
Yoselyn Castillo 13 years ago
parent 30811dd05e
commit ed9087c9fc
  1. 18
      main/newscorm/learnpath.class.php

@ -7578,6 +7578,22 @@ class learnpath {
$return .= get_lang('File').': '.$document_data['absolute_path_from_document'];
}
if ($item_type == TOOL_DOCUMENT ) {
$document_data = DocumentManager::get_document_data_by_id($row['path'], $course_code);
$return .= get_lang('File').': '.$document_data['absolute_path_from_document'];
}
if ($item_type == TOOL_QUIZ ) {
$document_data = DocumentManager::get_document_data_by_id($row['path'], $course_code);
$return .= get_lang('File').': '.$document_data['absolute_path_from_document'];
}
if ($item_type == TOOL_LINK ) {
$document_data = DocumentManager::get_document_data_by_id($row['path'], $course_code);
$return .= get_lang('File').': '.$document_data['absolute_path_from_document'];
}
$return .= '</div>';
if (!empty($audio_player)) {
@ -9269,4 +9285,4 @@ if (!function_exists('trim_value')) {
function trim_value(& $value) {
$value = trim($value);
}
}
}
Loading…
Cancel
Save