fix: actually cache the external svg icons from mdi
This commit is contained in:
parent
2d23527da7
commit
7b3c2fe1dd
1 changed files with 3 additions and 1 deletions
4
svg.php
4
svg.php
|
@ -111,7 +111,9 @@ class SVG {
|
||||||
} else {
|
} else {
|
||||||
// get it from material design icons
|
// get it from material design icons
|
||||||
$file = getCacheName($svg, '.svg');
|
$file = getCacheName($svg, '.svg');
|
||||||
io_download(self::CDNBASE . $svg, $file);
|
if (!file_exists($file)) {
|
||||||
|
io_download(self::CDNBASE . $svg, $file);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue