From 8f8ecd9e1aee461835dce8929ec616c3a77bf582 Mon Sep 17 00:00:00 2001 From: Phil Burton Date: Tue, 2 Apr 2019 14:29:45 +0100 Subject: Remove needless code and allow file's with .tex extensions to flow through to text, which is the same as what currently happens --- index.php | 1 - 1 file changed, 1 deletion(-) diff --git a/index.php b/index.php index 8de2218..f5a6869 100644 --- a/index.php +++ b/index.php @@ -306,7 +306,6 @@ foreach ($fileCollection as $item) { $icon="sound2"; break; case "tex": - $icon="tex"; case "txt": case "rtf": case "log": -- cgit v1.2.3 From 54d93e26fe9fc7a17e72ad07afbd02e2b491924a Mon Sep 17 00:00:00 2001 From: Phil Burton Date: Tue, 2 Apr 2019 14:58:10 +0100 Subject: Re-add tex icon and add break to fix bug where we incorrectly flow through to 'text' type --- index.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.php b/index.php index f5a6869..9868f29 100644 --- a/index.php +++ b/index.php @@ -306,6 +306,8 @@ foreach ($fileCollection as $item) { $icon="sound2"; break; case "tex": + $icon="tex"; + break; case "txt": case "rtf": case "log": -- cgit v1.2.3