diff --git a/Classes/Controller/RequestLogController.php b/Classes/Controller/RequestLogController.php index e1d623b..95b3912 100644 --- a/Classes/Controller/RequestLogController.php +++ b/Classes/Controller/RequestLogController.php @@ -172,11 +172,13 @@ private function resolveExtensionIcons(array $extensionKeys): array if (!$this->packageManager->isPackageActive($key)) { continue; } - $iconPath = $this->packageManager->getPackage($key)->getPackageIcon(); - if ($iconPath !== null) { - $icons[$key] = PathUtility::getAbsoluteWebPath( - $this->packageManager->getPackage($key)->getPackagePath() . $iconPath - ); + $packagePath = $this->packageManager->getPackage($key)->getPackagePath(); + foreach (['svg', 'png', 'gif'] as $extension) { + $relativeIconPath = 'Resources/Public/Icons/Extension.' . $extension; + if (file_exists($packagePath . $relativeIconPath)) { + $icons[$key] = PathUtility::getAbsoluteWebPath($packagePath . $relativeIconPath); + break; + } } } return $icons;