From dfce724c5df47616921203f03fdb7d56176befb9 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 23 Nov 2016 00:17:45 -0500 Subject: web/html/index.php: improve lookup table a bit --- web/html/index.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/web/html/index.php b/web/html/index.php index b771c47..79b4207 100644 --- a/web/html/index.php +++ b/web/html/index.php @@ -157,17 +157,13 @@ if (!empty($tokens[1]) && '/' . $tokens[1] == get_pkg_route()) { header("Content-Type: text/css"); readfile("./$path"); break; - case "/images/new.png": - header("Content-Type: image/png"); - readfile("./$path"); - break; case "/css/archnavbar/archlogo.png": case "/css/archnavbar/aurlogo.png": case "/images/AUR-logo-80.png": case "/images/AUR-logo.png": - case "/images/favicon.ico": + case "/images/favicon.ico": /* yes, it is a PNG, despite the extension */ case "/images/feed-icon-14x14.png": - case "/images/titlelogo.png": + case "/images/new.png": case "/images/x.png": header("Content-Type: image/png"); readfile("./$path"); -- cgit v1.2.2