Try base document if not found.

1.10.x
Julio Montoya 10 years ago
parent 74898e0264
commit 501f74c4ed
  1. 4
      main/document/document.php

@ -587,6 +587,10 @@ if (isset($document_id) && empty($action)) {
// If the path is not found (no document id), set the path to /
$document_id = DocumentManager::get_document_id($courseInfo, $curdirpath);
if (!$document_id) {
$document_id = DocumentManager::get_document_id($courseInfo, $curdirpath, 0);
}
$document_data = DocumentManager::get_document_data_by_id(
$document_id,
api_get_course_id(),

Loading…
Cancel
Save