Merge branch 'wip_MDL-50690_master' of git://github.com/gjb2048/moodle
authorDan Poltawski <dan@moodle.com>
Tue, 1 Sep 2015 19:59:58 +0000 (20:59 +0100)
committerDan Poltawski <dan@moodle.com>
Tue, 1 Sep 2015 19:59:58 +0000 (20:59 +0100)
theme/image.php

index 99af6c3..244ee43 100644 (file)
@@ -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();
         }
     }
 }