From d7f32670c52ce8308d3d1966cf702ab63d795162 Mon Sep 17 00:00:00 2001
From: Savetheinternet
Date: Wed, 5 Oct 2011 16:45:34 +1100
Subject: non-image file icons
---
inc/display.php | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
(limited to 'inc/display.php')
diff --git a/inc/display.php b/inc/display.php
index 0248a3b4..fc15c152 100644
--- a/inc/display.php
+++ b/inc/display.php
@@ -365,7 +365,10 @@
);
}
+ $ext = explode('.', $this->file);
+ $ext = $ext[1];
$built .= ')
' .
+
// Thumbnail
'
file .
@@ -546,7 +552,7 @@
($this->thumb == 'file' ? ' class="file"' : '') .
'> ? $config['file_icons'][$ext] : $config['file_icons']['default'])
:
($this->thumb == 'spoiler' ?
$config['root'] . $config['spoiler_image']
--
cgit v1.3
)