[TASK] Remove old class files in ext:sys_action 00/23500/2
authorWouter Wolters <typo3@wouterwolters.nl>
Fri, 30 Aug 2013 17:34:20 +0000 (19:34 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 31 Aug 2013 09:42:29 +0000 (11:42 +0200)
Remove old class files in ext:sys_action

Change-Id: I89941f8ace57e1b5470cc3038ffcc583a84eb1b4
Resolves: #51595
Releases: 6.2
Reviewed-on: https://review.typo3.org/23500
Reviewed-by: Kai Ole Hartwig
Tested-by: Kai Ole Hartwig
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/sys_action/Classes/ActionToolbarMenu.php
typo3/sysext/sys_action/ext_autoload.php [deleted file]
typo3/sysext/sys_action/task/class.tx_sysaction_list.php [deleted file]
typo3/sysext/sys_action/task/class.tx_sysaction_task.php [deleted file]
typo3/sysext/sys_action/toolbarmenu/class.tx_sysaction_toolbarmenu.php [deleted file]
typo3/sysext/sys_action/toolbarmenu/registerToolbarItem.php

index a930612..c6a03ce 100644 (file)
@@ -47,6 +47,7 @@ class ActionToolbarMenu implements \TYPO3\CMS\Backend\Toolbar\ToolbarItemHookInt
         * Constructor
         */
        public function __construct(\TYPO3\CMS\Backend\Controller\BackendController &$backendReference = NULL) {
+               $GLOBALS['LANG']->includeLLFile('EXT:sys_action/locallang.xlf');
                $this->backendReference = $backendReference;
        }
 
diff --git a/typo3/sysext/sys_action/ext_autoload.php b/typo3/sysext/sys_action/ext_autoload.php
deleted file mode 100644 (file)
index 60d142c..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-// Register necessary class names with autoloader
-$extensionPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('sys_action');
-return array(
-       'tx_sysaction_list' => $extensionPath . 'task/class.tx_sysaction_list.php',
-       'tx_sysaction_task' => $extensionPath . 'task/class.tx_sysaction_task.php'
-);
-?>
\ No newline at end of file
diff --git a/typo3/sysext/sys_action/task/class.tx_sysaction_list.php b/typo3/sysext/sys_action/task/class.tx_sysaction_list.php
deleted file mode 100644 (file)
index d6d7152..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-/*
- * @deprecated since 6.0, the classname tx_sysaction_list and this file is obsolete
- * and will be removed with 6.2. The class was renamed and is now located at:
- * typo3/sysext/sys_action/Classes/ActionList.php
- */
-require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('sys_action') . 'Classes/ActionList.php';
-?>
\ No newline at end of file
diff --git a/typo3/sysext/sys_action/task/class.tx_sysaction_task.php b/typo3/sysext/sys_action/task/class.tx_sysaction_task.php
deleted file mode 100644 (file)
index 9dedfc9..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-/*
- * @deprecated since 6.0, the classname tx_sysaction_task and this file is obsolete
- * and will be removed with 6.2. The class was renamed and is now located at:
- * typo3/sysext/sys_action/Classes/ActionTask.php
- */
-require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('sys_action') . 'Classes/ActionTask.php';
-?>
\ No newline at end of file
diff --git a/typo3/sysext/sys_action/toolbarmenu/class.tx_sysaction_toolbarmenu.php b/typo3/sysext/sys_action/toolbarmenu/class.tx_sysaction_toolbarmenu.php
deleted file mode 100644 (file)
index 3cbc8f9..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-/***************************************************************
- *  Copyright notice
- *
- *  (c) 2008-2011 Steffen Kamper <info@sk-typo3.de>
- *  All rights reserved
- *
- *  This script is part of the TYPO3 project. The TYPO3 project is
- *  free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  The GNU General Public License can be found at
- *  http://www.gnu.org/copyleft/gpl.html.
- *  A copy is found in the textfile GPL.txt and important notices to the license
- *  from the author is found in LICENSE.txt distributed with these scripts.
- *
- *
- *  This script is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  This copyright notice MUST APPEAR in all copies of the script!
- ***************************************************************/
-// Load the language file
-$GLOBALS['LANG']->includeLLFile('EXT:sys_action/locallang.xlf');
-/*
- * @deprecated since 6.0, the classname tx_sysactionToolbarMenu and this file is obsolete
- * and will be removed with 6.2. The class was renamed and is now located at:
- * typo3/sysext/sys_action/Classes/ActionToolbarMenu.php
- */
-require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('sys_action') . 'Classes/ActionToolbarMenu.php';
-?>
\ No newline at end of file
index bfb14b7..99ba49f 100644 (file)
@@ -2,9 +2,7 @@
 if (!defined('TYPO3_MODE')) {
        die('Access denied.');
 }
-if (TYPO3_MODE == 'BE') {
-       // First include the class file
-       include_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('sys_action') . 'toolbarmenu/class.tx_sysaction_toolbarmenu.php';
+if (TYPO3_MODE === 'BE') {
        // Now register the class as toolbar item
        $GLOBALS['TYPO3backend']->addToolbarItem('sys_action', 'TYPO3\\CMS\\SysAction\\ActionToolbarMenu');
 }