[!!!][BUGFIX] Clear Language Cache Configuration broken 12/12912/10
authorMarcus Schwemer <ms@schwemer.de>
Thu, 19 Jul 2012 22:35:37 +0000 (00:35 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 12 Apr 2013 20:47:12 +0000 (22:47 +0200)
Rename BE user TS option
options.clearCache.clearRTECache
to
options.clearCache.clearLangCache
to determine whether the language cache clear item should be shown.

Fixes: #39103
Releases: 6.1

Change-Id: I701dc9a879de4f3681f3fb441545eaa6b3e08e3e
Reviewed-on: https://review.typo3.org/12912
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
Reviewed-by: Stefan Neufeind
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/lang/Classes/ClearLanguageCacheMenuItem.php

index cabbf6a..61afa86 100644 (file)
@@ -41,9 +41,9 @@ class ClearLanguageCacheMenuItem implements \TYPO3\CMS\Backend\Toolbar\ClearCach
         * @return void
         */
        public function manipulateCacheActions(&$cacheActions, &$optionValues) {
-               if ($GLOBALS['BE_USER']->isAdmin() || $GLOBALS['BE_USER']->getTSConfigVal('options.clearCache.clearRTECache')) {
+               if ($GLOBALS['BE_USER']->isAdmin() || $GLOBALS['BE_USER']->getTSConfigVal('options.clearCache.clearLangCache')) {
                        // Add new cache menu item
-                       $title = $GLOBALS['LANG']->sL('LLL:EXT:lang/hooks/clearcache/locallang.xml:title');
+                       $title = $GLOBALS['LANG']->sL('LLL:EXT:lang/hooks/clearcache/locallang.xlf:title');
                        $cacheActions[] = array(
                                'id' => 'clearLangCache',
                                'title' => $title,