Fixed edit file in collections. Ticket# 4126

This commit is contained in:
Arturo Gonzalez 2016-10-21 12:21:44 +02:00
parent bf0099567b
commit 18cfb9d6e2
1 changed files with 2 additions and 1 deletions

View File

@ -755,7 +755,8 @@ function filemanager_file_explorer($real_directory, $relative_directory,
if (($editor) && (!$readOnly)) {
if (($typefile != 'bin') && ($typefile != 'pdf') && ($typefile != 'png') && ($typefile != 'jpg') &&
($typefile != 'iso') && ($typefile != 'docx') && ($typefile != 'doc')) {
$data[4] .= "<a style='vertical-align: top;' href='$url&edit_file=1&location_file=" . $fileinfo['realpath'] . "&hash=" . md5($fileinfo['realpath'] . $config['dbpass']) . "' style='float: left;'>" . html_print_image('images/edit.png', true, array("style" => 'margin-top: 2px;', 'title' => __('Edit file'))) . "</a>";
$hash = md5($fileinfo['realpath'] . $config['dbpass']);
$data[4] .= "<a style='vertical-align: top;' href='$url&edit_file=1&hash=" . $hash . "&location_file=" . $fileinfo['realpath'] . "' style='float: left;'>" . html_print_image('images/edit.png', true, array("style" => 'margin-top: 2px;', 'title' => __('Edit file'))) . "</a>";
}
}
}