summaryrefslogtreecommitdiff
path: root/inc/media.php
diff options
context:
space:
mode:
authorTom N Harris <tnharris@whoopdedo.org>2009-09-26 01:17:46 +0200
committerTom N Harris <tnharris@whoopdedo.org>2009-09-26 01:17:46 +0200
commit27bf79241161079d1d15f8fe1927682ec562835f (patch)
treea3bd8fee282dd481a4e4dd78aa445369b602b9d2 /inc/media.php
parent66b23ce9f134c838f393fa452c450f8b6fc147c3 (diff)
downloadrpg-27bf79241161079d1d15f8fe1927682ec562835f.tar.gz
rpg-27bf79241161079d1d15f8fe1927682ec562835f.tar.bz2
Use all available icons for file links (FS#1759)
All PNG and GIF images in the lib/images/fileicons directory will be used for media file links. The conf/mime.conf file continues to restrict which file types may be uploaded. File types not in the configuration list are download-only. darcs-hash:20090925231746-6942e-299a52772f67e265a8702bda3686f495e4337a8f.gz
Diffstat (limited to 'inc/media.php')
-rw-r--r--inc/media.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/media.php b/inc/media.php
index f1b6ea62e..4ad7047b2 100644
--- a/inc/media.php
+++ b/inc/media.php
@@ -555,7 +555,7 @@ function media_printfile($item,$auth,$jump,$display_namespace=false){
}
// Prepare fileicons
- list($ext,$mime,$dl) = mimetype($item['file']);
+ list($ext,$mime,$dl) = mimetype($item['file'],false);
$class = preg_replace('/[^_\-a-z0-9]+/i','_',$ext);
$class = 'select mediafile mf_'.$class;