[TASK] Change order of preferred extension icons 02/53002/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 08:20:05 +0000 (10:20 +0200)
Prefer svg over png icons.

Resolves: #81396
Releases: master, 8.7
Change-Id: Ide44eb1f0c841c788516424fbff01bd319c79104
Reviewed-on: https://review.typo3.org/53002
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Christer V <cvi@systime.dk>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php

index c57e464..cddced5 100644 (file)
@@ -1422,11 +1422,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) {