[TASK] Remove compat layer for backend module
authorNicole Cordes <n.cordes@biz-design.biz>
Wed, 29 Aug 2012 21:35:33 +0000 (23:35 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sun, 31 Mar 2013 19:16:54 +0000 (21:16 +0200)
Patch replaces calls of old extension classes which were replaced
in TYPO3 6.0

Change-Id: I6b96d54e7505d14cd4f1909f8fda9559ec79a951
Resolves: #40369
Related: #40095
Related: #40240
Releases: 6.1, 6.0
Reviewed-on: https://review.typo3.org/14209
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/workspaces/Classes/ExtDirect/ActionHandler.php
typo3/sysext/workspaces/Classes/ExtDirect/WorkspaceSelectorToolbarItem.php
typo3/sysext/workspaces/Classes/Hook/BackendUtilityHook.php
typo3/sysext/workspaces/Classes/Service/GridDataService.php

index 8f6ca8b..49dc496 100644 (file)
@@ -233,7 +233,7 @@ class ActionHandler extends \TYPO3\CMS\Workspaces\ExtDirect\AbstractHandler {
                }
                $recipients = array();
                foreach ($uidOfRecipients as $userUid) {
-                       $beUserRecord = \t3lib_befunc::getRecord('be_users', intval($userUid));
+                       $beUserRecord = \TYPO3\CMS\Backend\Utility\BackendUtility::getRecord('be_users', intval($userUid));
                        if (is_array($beUserRecord) && $beUserRecord['email'] !== '') {
                                $uc = $beUserRecord['uc'] ? unserialize($beUserRecord['uc']) : array();
                                $recipients[$beUserRecord['email']] = array(
index 2c05cb2..547c626 100644 (file)
@@ -29,7 +29,7 @@ namespace TYPO3\CMS\Workspaces\ExtDirect;
  ***************************************************************/
 
 if (TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_AJAX) {
-       require_once PATH_typo3 . 'interfaces/interface.backend_toolbaritem.php';
+       require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('backend') . 'Classes/Toolbar/ToolbarItemHookInterface.php';
 }
 
 /**
index ec4f8cf..d70df5e 100644 (file)
@@ -43,7 +43,7 @@ class BackendUtilityHook implements \TYPO3\CMS\Core\SingletonInterface {
        }
 
        /**
-        * Hooks into the t3lib_beFunc::viewOnClick and redirects to the workspace preview
+        * Hooks into the TYPO3\CMS\Backend\Utility\BackendUtility::viewOnClick and redirects to the workspace preview
         * only if we're in a workspace and if the frontend-preview is disabled.
         *
         * @param $pageUid
index 4e860a0..6e783b4 100644 (file)
@@ -510,7 +510,7 @@ class GridDataService {
         * Gets all available system languages.
         *
         * @return array
-        * @see t3lib_transl8tools::getSystemLanguages
+        * @see \TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider::getSystemLanguages
         */
        public function getSystemLanguages() {
                if (!isset($this->systemLanguages)) {