From 24057c3d53a22373e0b575a36f49ab8e965b6934 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Tue, 4 Aug 2009 07:04:21 +0000 Subject: #531476 by aaron and mfb: Add favicon mimetype as a theme setting to avoid expensive calls to file system. --- includes/theme.maintenance.inc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'includes/theme.maintenance.inc') diff --git a/includes/theme.maintenance.inc b/includes/theme.maintenance.inc index 2dacf27ab..20b2f6505 100644 --- a/includes/theme.maintenance.inc +++ b/includes/theme.maintenance.inc @@ -216,11 +216,7 @@ function template_preprocess_maintenance_page(&$variables) { // Add favicon if (theme_get_setting('toggle_favicon')) { $favicon = theme_get_setting('favicon'); - $type = file_get_mimetype($favicon); - // Use the genereic MIME type for favicons if no other was found. - if ($type == 'application/octet-stream') { - $type = 'image/x-icon'; - } + $type = theme_get_setting('favicon_mimetype'); drupal_add_html_head(''); } -- cgit v1.2.3