Skip to content

Commit

Permalink
Added .yml, .yaml and .toml extensions. (prasathmani#816)
Browse files Browse the repository at this point in the history
These are common config file extensions.
  • Loading branch information
Sebjugate authored Jul 14, 2022
1 parent 957d040 commit da18227
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tinyfilemanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -2745,6 +2745,9 @@ function fm_get_file_icon_class($path)
case 'conf':
case 'log':
case 'htaccess':
case 'yaml':
case 'yml':
case 'toml':
$img = 'fa fa-file-text-o';
break;
case 'css':
Expand Down Expand Up @@ -2911,7 +2914,8 @@ function fm_get_text_exts()
'txt', 'css', 'ini', 'conf', 'log', 'htaccess', 'passwd', 'ftpquota', 'sql', 'js', 'json', 'sh', 'config',
'php', 'php4', 'php5', 'phps', 'phtml', 'htm', 'html', 'shtml', 'xhtml', 'xml', 'xsl', 'm3u', 'm3u8', 'pls', 'cue',
'eml', 'msg', 'csv', 'bat', 'twig', 'tpl', 'md', 'gitignore', 'less', 'sass', 'scss', 'c', 'cpp', 'cs', 'py',
'map', 'lock', 'dtd', 'svg', 'scss', 'asp', 'aspx', 'asx', 'asmx', 'ashx', 'jsx', 'jsp', 'jspx', 'cfm', 'cgi'
'map', 'lock', 'dtd', 'svg', 'scss', 'asp', 'aspx', 'asx', 'asmx', 'ashx', 'jsx', 'jsp', 'jspx', 'cfm', 'cgi',
'yml', 'yaml', 'toml'
);
}

Expand Down

0 comments on commit da18227

Please sign in to comment.