[BUGFIX] Swap mixed up labels in admin panel page cache info 80/58980/3
authorNikita Hovratov <nikita.h@live.de>
Thu, 29 Nov 2018 13:18:45 +0000 (14:18 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Fri, 7 Dec 2018 21:23:52 +0000 (22:23 +0100)
Due to the fact that the translation keys for the page cache info
were double negated (noCache_no = yes) they ended up being mixed up.
This patch just swaps the labels. In v10 the keys can be renamed to
prevent confusion.

Resolves: #87039
Releases: master
Change-Id: I34f4d3aa2c0d659eee5c99c8df092260bcef7f5b
Reviewed-on: https://review.typo3.org/58980
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Mona Muzaffar <mona.muzaffar@gmx.de>
Tested-by: Mona Muzaffar <mona.muzaffar@gmx.de>
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/adminpanel/Resources/Private/Templates/Modules/Info/General.html

index 295a3ee..ddf9e23 100644 (file)
     \'LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:groupList\': info.groupList
     }'}" debug="false"/>
 
-<f:variable name="noCacheLabel">LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:noCache_no</f:variable>
-<f:if condition="{info.noCache}"><f:variable name="noCacheLabel">LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:noCache_yes</f:variable></f:if>
+<f:if condition="{info.noCache}">
+    <f:then><f:variable name="isCachedInfo">LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:noCache_no</f:variable></f:then>
+    <f:else><f:variable name="isCachedInfo">LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:noCache_yes</f:variable></f:else>
+</f:if>
 <f:render partial="Data/TableKeyValue" arguments="{label: 'Cache', data: '{
-    \'LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:noCache\': noCacheLabel
+    \'LLL:EXT:adminpanel/Resources/Private/Language/locallang_info.xlf:noCache\': isCachedInfo
     }'}" debug="false"/>
 
 <f:render partial="Data/TableKeyValue" arguments="{label: 'UserIntObjects', data: '{