From 7b3c2fe1dd89a6f9602f5539ace5f825a3ce7a5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Gro=C3=9Fe?= Date: Tue, 20 Mar 2018 15:51:14 +0100 Subject: [PATCH] fix: actually cache the external svg icons from mdi --- svg.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/svg.php b/svg.php index f0bad62..a0938a3 100644 --- a/svg.php +++ b/svg.php @@ -111,7 +111,9 @@ class SVG { } else { // get it from material design icons $file = getCacheName($svg, '.svg'); - io_download(self::CDNBASE . $svg, $file); + if (!file_exists($file)) { + io_download(self::CDNBASE . $svg, $file); + } } }