summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2014-02-20 10:34:40 +0100
committerJan-Christoph Borchardt <hey@jancborchardt.net>2014-02-20 10:45:11 +0100
commita6fb6abbe015b6c2fa643da94884fc1ec2fdb336 (patch)
tree2acb8a9dacb93e4a1bb307e76aab55fede79197e /lib
parent16cbfd03834b844019f79d1e5cbdd2756b21aacf (diff)
downloadnextcloud-server-a6fb6abbe015b6c2fa643da94884fc1ec2fdb336.tar.gz
nextcloud-server-a6fb6abbe015b6c2fa643da94884fc1ec2fdb336.zip
fix filetype icons for gzip, tex, perl, csv, sh
Diffstat (limited to 'lib')
-rw-r--r--lib/private/helper.php5
-rw-r--r--lib/private/mimetypes.list.php4
2 files changed, 8 insertions, 1 deletions
diff --git a/lib/private/helper.php b/lib/private/helper.php
index 9b5bf0652ae..1aab2f296e1 100644
--- a/lib/private/helper.php
+++ b/lib/private/helper.php
@@ -163,13 +163,17 @@ class OC_Helper {
'application/vnd.ms-fontobject' => 'font',
'application/json' => 'text/code',
+ 'application/x-perl' => 'text/code',
'application/x-php' => 'text/code',
+ 'text/x-shellscript' => 'text/code',
'application/xml' => 'text/html',
'text/css' => 'text/code',
+ 'application/x-tex' => 'text',
'application/x-compressed' => 'package/x-generic',
'application/x-7z-compressed' => 'package/x-generic',
'application/x-deb' => 'package/x-generic',
+ 'application/x-gzip' => 'package/x-generic',
'application/x-rar-compressed' => 'package/x-generic',
'application/x-tar' => 'package/x-generic',
'application/zip' => 'package/x-generic',
@@ -206,6 +210,7 @@ class OC_Helper {
'application/vnd.ms-excel.sheet.binary.macroEnabled.12' => 'x-office/spreadsheet',
'application/vnd.oasis.opendocument.spreadsheet' => 'x-office/spreadsheet',
'application/vnd.oasis.opendocument.spreadsheet-template' => 'x-office/spreadsheet',
+ 'text/csv' => 'x-office/spreadsheet',
'application/msaccess' => 'database',
);
diff --git a/lib/private/mimetypes.list.php b/lib/private/mimetypes.list.php
index ff2a7ecc48d..9bd07b89023 100644
--- a/lib/private/mimetypes.list.php
+++ b/lib/private/mimetypes.list.php
@@ -41,6 +41,7 @@ return array(
'cdr' => 'application/coreldraw',
'cpp' => 'text/x-c++src',
'css' => 'text/css',
+ 'csv' => 'text/csv',
'cvbdl' => 'application/x-cbr',
'c' => 'text/x-c',
'c++' => 'text/x-c++src',
@@ -94,7 +95,7 @@ return array(
'pages' => 'application/x-iwork-pages-sffpages',
'pdf' => 'application/pdf',
'php' => 'application/x-php',
- 'pl' => 'application/x-pearl',
+ 'pl' => 'application/x-perl',
'png' => 'image/png',
'ppt' => 'application/mspowerpoint',
'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
@@ -109,6 +110,7 @@ return array(
'swf' => 'application/x-shockwave-flash',
'tar' => 'application/x-tar',
'tar.gz' => 'application/x-compressed',
+ 'tex' => 'application/x-tex',
'tgz' => 'application/x-compressed',
'tiff' => 'image/tiff',
'tif' => 'image/tiff',