From 01410430e7ccf907a06ce3341846ca2992c5a4ff Mon Sep 17 00:00:00 2001 From: Gareth J Barnard Date: Thu, 27 Aug 2015 15:35:23 +0100 Subject: [PATCH] MDL-50690 themes: Theme cache SVG images are not created. --- theme/image.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/theme/image.php b/theme/image.php index 99af6c3433e..244ee43f08a 100644 --- a/theme/image.php +++ b/theme/image.php @@ -167,6 +167,10 @@ if (!$usesvg) { } send_uncached_image($imagefile); exit; + } else { + /* We cannot serve the SVG file this time and there is no alternative, so prevent future + requests from failing to find the image when they can support SVG. */ + image_not_found(); } } }