@@ 1727-1731 (lines=5) @@ | ||
1724 | $size = $document_data['filetype'] == 'folder' ? get_total_folder_size($document_data['path'], $is_allowed_to_edit) : $document_data['size']; |
|
1725 | ||
1726 | // Get the title or the basename depending on what we're using |
|
1727 | if ($document_data['title'] != '') { |
|
1728 | $document_name = $document_data['title']; |
|
1729 | } else { |
|
1730 | $document_name = basename($document_data['path']); |
|
1731 | } |
|
1732 | ||
1733 | $row['name'] = $document_name; |
|
1734 | // Data for checkbox |
@@ 5136-5140 (lines=5) @@ | ||
5133 | $webOdflist = DocumentManager::get_web_odf_extension_list(); |
|
5134 | ||
5135 | // Get the title or the basename depending on what we're using |
|
5136 | if ($document_data['title'] != '') { |
|
5137 | $title = $document_data['title']; |
|
5138 | } else { |
|
5139 | $title = basename($document_data['path']); |
|
5140 | } |
|
5141 | ||
5142 | $filetype = $document_data['filetype']; |
|
5143 | $size = $filetype == 'folder' ? get_total_folder_size($document_data['path'], api_is_allowed_to_edit(null, true)) : $document_data['size']; |