diff --git a/typo3/sysext/lang/ext_localconf.php b/typo3/sysext/lang/ext_localconf.php index c89475a..ddc8e43 100644 --- a/typo3/sysext/lang/ext_localconf.php +++ b/typo3/sysext/lang/ext_localconf.php @@ -12,13 +12,10 @@ if (!isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][ $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['t3lib_l10n']['backend'] = 't3lib_cache_backend_FileBackend'; } -if (isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['lang']['cache']['clear_menu']) && $GLOBALS['TYPO3_CONF_VARS']['SYS']['lang']['cache']['clear_menu']) { - // Register Clear Cache Menu hook - $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['additionalBackendItems']['cacheActions']['clearLangCache'] = 'EXT:lang/hooks/clearcache/class.tx_lang_clearcachemenu.php:&tx_lang_clearcachemenu'; -} else { - // Clear l10n cache when the user clears all caches - $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc']['clearLangCache'] = 'EXT:lang/hooks/clearcache/class.tx_lang_clearcache.php:tx_lang_clearcache->clearCache'; -} + // Register Clear Cache Menu hook +$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['additionalBackendItems']['cacheActions']['clearLangCache'] = 'EXT:lang/hooks/clearcache/class.tx_lang_clearcachemenu.php:&tx_lang_clearcachemenu'; + // Clear l10n cache when the user clears all caches +$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc']['clearLangCache'] = 'EXT:lang/hooks/clearcache/class.tx_lang_clearcache.php:tx_lang_clearcache->clearCache'; // Register Ajax call $GLOBALS['TYPO3_CONF_VARS']['BE']['AJAX']['lang::clearCache'] = 'EXT:lang/hooks/clearcache/class.tx_lang_clearcache.php:tx_lang_clearcache->clearCache'; diff --git a/typo3/sysext/lang/hooks/clearcache/class.tx_lang_clearcachemenu.php b/typo3/sysext/lang/hooks/clearcache/class.tx_lang_clearcachemenu.php index f962584..b6f3db5 100644 --- a/typo3/sysext/lang/hooks/clearcache/class.tx_lang_clearcachemenu.php +++ b/typo3/sysext/lang/hooks/clearcache/class.tx_lang_clearcachemenu.php @@ -42,9 +42,9 @@ class tx_lang_clearcachemenu implements backend_cacheActionsHook { * @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,