From 5a2712b8d212a687722302513f8a50d49c206f3d Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Fri, 21 Oct 2016 12:21:44 +0200 Subject: [PATCH] Fixed edit file in collections. Ticket# 4126 (cherry picked from commit 18cfb9d6e224564e9d707432739477f18bf8feda) --- pandora_console/include/functions_filemanager.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions_filemanager.php b/pandora_console/include/functions_filemanager.php index 96eb74305a..5e0ef6c718 100644 --- a/pandora_console/include/functions_filemanager.php +++ b/pandora_console/include/functions_filemanager.php @@ -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] .= "" . html_print_image('images/edit.png', true, array("style" => 'margin-top: 2px;', 'title' => __('Edit file'))) . ""; + $hash = md5($fileinfo['realpath'] . $config['dbpass']); + $data[4] .= "" . html_print_image('images/edit.png', true, array("style" => 'margin-top: 2px;', 'title' => __('Edit file'))) . ""; } } }