diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php
index 49af02075b4..6f31f0ff8de 100644
--- a/htdocs/core/class/html.formfile.class.php
+++ b/htdocs/core/class/html.formfile.class.php
@@ -1174,7 +1174,9 @@ class FormFile
print_liste_field_titre('Size', $url, "size", "", $param, '', $sortfield, $sortorder, 'right ');
print_liste_field_titre('Date', $url, "date", "", $param, '', $sortfield, $sortorder, 'center ');
if (empty($useinecm) || $useinecm == 4 || $useinecm == 5 || $useinecm == 6) print_liste_field_titre('', $url, "", "", $param, '', $sortfield, $sortorder, 'center '); // Preview
+ // Shared or not - Hash of file
print_liste_field_titre('');
+ // Action button
print_liste_field_titre('');
if (!$disablemove) print_liste_field_titre('');
print "\n";
@@ -1285,12 +1287,10 @@ class FormFile
print '';
}
- // Hash of file (only if we are in a mode where a scan of dir were done and we have id of file in ECM table)
+ // Shared or not - Hash of file
print '
';
- if ($relativedir && $filearray[$key]['rowid'] > 0)
- {
- if ($editline)
- {
+ if ($relativedir && $filearray[$key]['rowid'] > 0) { // only if we are in a mode where a scan of dir were done and we have id of file in ECM table
+ if ($editline) {
print $langs->trans("FileSharedViaALink").' ';
print ' ';
} else {
@@ -1318,7 +1318,7 @@ class FormFile
}
print '
';
- // Actions buttons
+ // Actions buttons (1 column or 2 if !disablemove)
if (!$editline)
{
// Delete or view link
@@ -1406,6 +1406,7 @@ class FormFile
else print $textifempty;
print '';
}
+
print "";
print '';
@@ -1479,7 +1480,7 @@ class FormFile
print '