From 3eb2918c7f7afb1c79c98da6194cd7a2bb97977a Mon Sep 17 00:00:00 2001 From: Oliver Bartsch Date: Fri, 8 May 2026 14:20:13 +0200 Subject: [PATCH] [TASK] Inline getPackageIcon() for v12 support --- Classes/Controller/RequestLogController.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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;