| @@ 1728-1732 (lines=5) @@ | ||
| 1725 | $size = $document_data['filetype'] == 'folder' ? get_total_folder_size($document_data['path'], $is_allowed_to_edit) : $document_data['size']; |
|
| 1726 | ||
| 1727 | // Get the title or the basename depending on what we're using |
|
| 1728 | if ($document_data['title'] != '') { |
|
| 1729 | $document_name = $document_data['title']; |
|
| 1730 | } else { |
|
| 1731 | $document_name = basename($document_data['path']); |
|
| 1732 | } |
|
| 1733 | ||
| 1734 | $row['name'] = $document_name; |
|
| 1735 | // Data for checkbox |
|
| @@ 5122-5126 (lines=5) @@ | ||
| 5119 | $webOdflist = DocumentManager::get_web_odf_extension_list(); |
|
| 5120 | ||
| 5121 | // Get the title or the basename depending on what we're using |
|
| 5122 | if ($document_data['title'] != '') { |
|
| 5123 | $title = $document_data['title']; |
|
| 5124 | } else { |
|
| 5125 | $title = basename($document_data['path']); |
|
| 5126 | } |
|
| 5127 | ||
| 5128 | $filetype = $document_data['filetype']; |
|
| 5129 | $size = $filetype == 'folder' ? get_total_folder_size($document_data['path'], api_is_allowed_to_edit(null, true)) : $document_data['size']; |
|