mirror of
https://github.com/unraid/webgui.git
synced 2026-03-20 20:02:44 -05:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@@ -292,7 +292,7 @@ class DockerTemplates {
|
||||
public function getIcon($Repository) {
|
||||
global $docroot, $dockerManPaths;
|
||||
$imgUrl = $this->getTemplateValue($Repository, 'Icon');
|
||||
preg_match_all("/(.*?):([\w]*$)/i", $Repository, $matches);
|
||||
preg_match_all("/(.*?):([\S]*$)/i", $Repository, $matches);
|
||||
$name = preg_replace("%\/|\\\%", '-', $matches[1][0]);
|
||||
$version = $matches[2][0];
|
||||
$iconRAM = sprintf('%s/%s-%s-%s.png', $dockerManPaths['images-ram'], $name, $version, 'icon');
|
||||
|
||||
Reference in New Issue
Block a user