Skip to content

Commit

Permalink
fix: actually cache the external svg icons from mdi
Browse files Browse the repository at this point in the history
  • Loading branch information
micgro42 committed Mar 20, 2018
1 parent 2d23527 commit 7b3c2fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion svg.php
Expand Up @@ -111,7 +111,9 @@ public function __construct() {
} 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);
}
}

}
Expand Down

0 comments on commit 7b3c2fe

Please sign in to comment.