added new types of text. Ticket #3435.

(cherry picked from commit ee4a5f4119)
This commit is contained in:
Daniel Maya 2016-06-16 11:50:20 +02:00
parent 5dc523a959
commit d89f8aadc2
1 changed files with 2 additions and 1 deletions

View File

@ -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{