mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
added new types of text. Ticket #3435.
This commit is contained in:
parent
e573cde9eb
commit
ee4a5f4119
@ -687,7 +687,8 @@ function filemanager_file_explorer($real_directory, $relative_directory,
|
||||
break;
|
||||
case MIME_UNKNOWN:
|
||||
if ($fileinfo['size'] == 0) {
|
||||
if (strstr($fileinfo['name'], '.txt') !== false) {
|
||||
|
||||
if ((strstr($fileinfo['name'], '.txt') !== false)||(strstr($fileinfo['name'], '.conf') !== false)||(strstr($fileinfo['name'], '.sql') !== false)||(strstr($fileinfo['name'], '.pl') !== false)) {
|
||||
$fileinfo['mime'] = MIME_TEXT;
|
||||
$data[0] = html_print_image ('images/mimetypes/text.png', true, array('title' => __('Text file')));
|
||||
}else{
|
||||
|
Loading…
x
Reference in New Issue
Block a user