[BUGFIX] Language cache is not cleared anymore 10/19910/2
authorOliver Hader <oliver@typo3.org>
Sat, 13 Apr 2013 11:53:54 +0000 (13:53 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Sat, 13 Apr 2013 11:57:07 +0000 (13:57 +0200)
The language cache is not cleared anymore due to
wrong condition in the hook method.

Change-Id: If549d57580d05a547f8c879eed31a1f72667c661
Related: #46205
Releases: 6.0, 6.1
Reviewed-on: https://review.typo3.org/19910
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/lang/Classes/LanguageCacheClearer.php

index 08b4cff..51a61e7 100644 (file)
@@ -63,7 +63,7 @@ class LanguageCacheClearer {
        public function clearCache(array $parameters) {
                $isValidCall = (
                        !empty($parameters['cacheCmd'])
-                       && \TYPO3\CMS\Core\Utility\GeneralUtility::inList('all,temp_cached', empty($parameters['cacheCmd']))
+                       && \TYPO3\CMS\Core\Utility\GeneralUtility::inList('all,temp_cached', $parameters['cacheCmd'])
                );
 
                if (isset($GLOBALS['BE_USER']) && $isValidCall) {