|
|
@@ -49,15 +49,7 @@ if ($ico_mtime == false || $ico_mtime < $txt_mtime || ($ico_mtime < time() - (mt
|
|
|
}
|
|
|
|
|
|
if (!httpConditional($ico_mtime, mt_rand(14, 21) * 86400, 2)) {
|
|
|
- $ico_content_type = 'image/x-icon';
|
|
|
- if (function_exists('mime_content_type')) {
|
|
|
- $ico_content_type = mime_content_type($ico);
|
|
|
- }
|
|
|
- switch ($ico_content_type) {
|
|
|
- case 'image/svg':
|
|
|
- $ico_content_type = 'image/svg+xml';
|
|
|
- break;
|
|
|
- }
|
|
|
+ $ico_content_type = contentType($ico);
|
|
|
header('Content-Type: ' . $ico_content_type);
|
|
|
header('Content-Disposition: inline; filename="' . $id . '.ico"');
|
|
|
readfile($ico);
|