[BUGFIX] Make class name consistent
[Packages/TYPO3.CMS.git] / typo3 / sysext / workspaces / Classes / Service / Tcemain.php
index 6804081..460f6b8 100644 (file)
@@ -31,7 +31,7 @@
  * @package Workspaces
  * @subpackage Service
  */
-class tx_Workspaces_Service_Tcemain {
+class Tx_Workspaces_Service_Tcemain {
 
        /**
         * In case a sys_workspace_stage record is deleted we do a hard reset
@@ -49,7 +49,7 @@ class tx_Workspaces_Service_Tcemain {
                if ($command === 'delete') {
                        if ($table === Tx_Workspaces_Service_Stages::TABLE_STAGE) {
                                $this->resetStageOfElements($id);
-                       } elseif ($table === tx_Workspaces_Service_Workspaces::TABLE_WORKSPACE) {
+                       } elseif ($table === Tx_Workspaces_Service_Workspaces::TABLE_WORKSPACE) {
                                $this->flushWorkspaceElements($id);
                        }
                }
@@ -149,11 +149,9 @@ class tx_Workspaces_Service_Tcemain {
         * @return void
         */
        protected function flushWorkspaceCacheEntriesByWorkspaceId($workspaceId) {
-               if (TYPO3_UseCachingFramework === TRUE) {
-                       $workspacesCache = $GLOBALS['typo3CacheManager']->getCache('workspaces_cache');
-                       $workspacesCache->flushByTag($workspaceId);
-                       $workspacesCache->flushByTag(tx_Workspaces_Service_Workspaces::SELECT_ALL_WORKSPACES);
-               }
+               $workspacesCache = $GLOBALS['typo3CacheManager']->getCache('workspaces_cache');
+               $workspacesCache->flushByTag($workspaceId);
+               $workspacesCache->flushByTag(Tx_Workspaces_Service_Workspaces::SELECT_ALL_WORKSPACES);
        }
 }