[TASK] Remove array items to perform string comparison 91/19691/4
authorAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 6 Apr 2013 17:49:51 +0000 (19:49 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 6 Apr 2013 18:54:00 +0000 (20:54 +0200)
The Fluid IfViewHelper doesn't need any longer array items to perform
string comparison.
The patch removes all occurences in extensionmanager sysext.

Resolves: #46995
Releases: 6.1
Change-Id: If533afd4d0f4522b3455e308a7f01969f4fb0326
Reviewed-on: https://review.typo3.org/19691
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/extensionmanager/Resources/Private/Layouts/Main.html
typo3/sysext/extensionmanager/Resources/Private/Templates/Configuration/ShowConfigurationForm.html

index 6509a3b..b111185 100644 (file)
@@ -25,7 +25,7 @@
                        <f:be.menus.actionMenu>
                                <f:be.menus.actionMenuItem label="{f:translate(key: 'manageExtensions')}" controller="List" action="index" />
                                <f:be.menus.actionMenuItem label="{f:translate(key: 'getExtensions')}" controller="List" action="ter" />
-                               <f:if condition="{0: actionName} == {0: 'showAllVersions'}">
+                               <f:if condition="{actionName} == 'showAllVersions'">
                                        <f:be.menus.actionMenuItem label="{f:translate(key: 'showAllVersions')} {extensionKey}" controller="List" action="showAllVersions" />
                                </f:if>
                        </f:be.menus.actionMenu>
index 3deef55..69e63c0 100644 (file)
@@ -48,7 +48,7 @@
                                                                                                <span style="background:red; padding:1px 2px; color:#fff; font-weight:bold;">{item.highlight}</span>
                                                                                        </f:if>
                                                                                        <em:form.typoScriptConstants configuration="{item}" />
-                                                                                       <f:if condition="{0: item.type} != {0: 'user'}">
+                                                                                       <f:if condition="{item.type} != 'user'">
                                                                                                <f:then>
                                                                                                        <f:alias map="{label: '{f:translate(key: \'extConfTemplate.type.{item.type}\')}'}">
                                                                                                                <f:if condition="{label}">