mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Changes in the types of format accepted.Ticket #4032.
(cherry picked from commit 24d466e185ceee204871ae1e9e7a650c34043c06)
This commit is contained in:
parent
7d47304fdc
commit
222f5ff63d
@ -753,7 +753,8 @@ function filemanager_file_explorer($real_directory, $relative_directory,
|
||||
$data[4] .= '</form>';
|
||||
|
||||
if (($editor) && (!$readOnly)) {
|
||||
if (($typefile == 'sh') || ($typefile == 'pl') || ($typefile == 'vbs')) {
|
||||
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'] . "' style='float: left;'>" . html_print_image('images/edit.png', true, array("style" => 'margin-top: 2px;', 'title' => __('Edit file'))) . "</a>";
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user