From 048444fd21d0110eeb04af471782718ac3348043 Mon Sep 17 00:00:00 2001 From: Gareth J Barnard Date: Thu, 27 Aug 2015 15:40:03 +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(); } } }