Commit 27cac86a authored by jonnybradley's avatar jonnybradley

[bp/r66049][FIX] files: Better test for office docs

[bp/r66050][FIX] files: Office docs (oops)
parent 3e24de59
......@@ -99,14 +99,14 @@ function smarty_modifier_iconify($string, $filetype = null, $fileId = null, $siz
case $type === 'application/vnd.ms-excel'
|| $type === 'application/ms-excel'
|| $type === 'application/msexcel'
|| $type === 'application/vnd.openxmlformats-officedocument.spreadsheetml'
|| strpos($type, 'application/vnd.openxmlformats-officedocument.spreadsheetml') === 0
|| $type === 'application/vnd.oasis.opendocument.spreadsheet':
$iconname = 'excel';
break;
case $type === 'application/vnd.ms-powerpoint'
|| $type === 'application/ms-powerpoint'
|| $type === 'application/mspowerpoint'
|| $type == 'application/vnd.openxmlformats-officedocument.presentationml':
|| strpos($type, 'application/vnd.openxmlformats-officedocument.presentationml') === 0:
$iconname = 'powerpoint';
break;
case strpos($type, 'audio/') === 0:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment