added new types of text. Ticket #3435.
(cherry picked from commit ee4a5f4119
)
This commit is contained in:
parent
5dc523a959
commit
d89f8aadc2
|
@ -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…
Reference in New Issue