mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-05-04 14:53:13 +02:00
Added .yml, .yaml and .toml extensions. (#816)
These are common config file extensions.
This commit is contained in:
parent
afe1227caa
commit
3a3033bdce
|
@ -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':
|
||||
|
@ -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'
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue