fix: actually cache the external svg icons from mdi

This commit is contained in:
Michael Große 2018-03-20 15:51:14 +01:00
commit 7b3c2fe1dd
No known key found for this signature in database
GPG key ID: 7E31028FBFEACC79

View file

@ -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);
}
}
}