[TASK] Change order of preferred extension icons 17/53017/2
authorGeorg Ringer <georg.ringer@gmail.com>
Thu, 1 Jun 2017 16:56:49 +0000 (18:56 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 2 Jun 2017 09:01:06 +0000 (11:01 +0200)
Prefer svg over png icons.

Resolves: #81396
Releases: master, 8.7
Change-Id: Ide44eb1f0c841c788516424fbff01bd319c79104
Reviewed-on: https://review.typo3.org/53017
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php

index 2286bd4..e1c59c0 100644 (file)
@@ -1556,11 +1556,11 @@ tt_content.' . $key . $suffix . ' {
     {
         $icon = '';
         $locationsToCheckFor = [
-            'Resources/Public/Icons/Extension.png',
             'Resources/Public/Icons/Extension.svg',
+            'Resources/Public/Icons/Extension.png',
             'Resources/Public/Icons/Extension.gif',
-            'ext_icon.png',
             'ext_icon.svg',
+            'ext_icon.png',
             'ext_icon.gif',
         ];
         foreach ($locationsToCheckFor as $fileLocation) {