[TASK] Remove old class files in ext:perm 02/23502/2
authorWouter Wolters <typo3@wouterwolters.nl>
Fri, 30 Aug 2013 18:00:22 +0000 (20:00 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 31 Aug 2013 09:42:18 +0000 (11:42 +0200)
Remove old class files in ext:perm

Change-Id: I8dc580ce07a3489a27ed92f427b504e9959af2ba
Resolves: #51597
Releases: 6.2
Reviewed-on: https://review.typo3.org/23502
Reviewed-by: Kai Ole Hartwig
Tested-by: Kai Ole Hartwig
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/perm/Classes/Controller/PermissionAjaxController.php
typo3/sysext/perm/ext_autoload.php [deleted file]
typo3/sysext/perm/ext_tables.php
typo3/sysext/perm/mod1/class.sc_mod_web_perm_ajax.php [deleted file]
typo3/sysext/perm/mod1/index.php

index d704b47..2c3f02c 100644 (file)
@@ -52,6 +52,7 @@ class PermissionAjaxController {
         * The constructor of this class
         */
        public function __construct() {
+               $GLOBALS['LANG']->includeLLFile('EXT:lang/locallang_mod_web_perm.xlf');
                // Configuration, variable assignment
                $this->conf['page'] = \TYPO3\CMS\Core\Utility\GeneralUtility::_POST('page');
                $this->conf['who'] = \TYPO3\CMS\Core\Utility\GeneralUtility::_POST('who');
diff --git a/typo3/sysext/perm/ext_autoload.php b/typo3/sysext/perm/ext_autoload.php
deleted file mode 100644 (file)
index 0ba0968..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-$extensionPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('perm');
-return array(
-       'sc_mod_web_perm_ajax' => $extensionPath . 'mod1/class.sc_mod_web_perm_ajax.php',
-       'sc_mod_web_perm_index' => $extensionPath . 'mod1/index.php'
-);
-?>
\ No newline at end of file
index 2c23459..76e4991 100644 (file)
@@ -3,7 +3,12 @@ if (!defined('TYPO3_MODE')) {
        die('Access denied.');
 }
 if (TYPO3_MODE === 'BE') {
-       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('web', 'perm', '', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod1/');
-       $TYPO3_CONF_VARS['BE']['AJAX']['PermissionAjaxController::dispatch'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod1/class.sc_mod_web_perm_ajax.php:TYPO3\\CMS\\Perm\\Controller\\PermissionAjaxController->dispatch';
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
+               'web',
+               'perm',
+               '',
+               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod1/'
+       );
+       $GLOBALS['TYPO3_CONF_VARS']['BE']['AJAX']['PermissionAjaxController::dispatch'] = 'TYPO3\\CMS\\Perm\\Controller\\PermissionAjaxController->dispatch';
 }
 ?>
\ No newline at end of file
diff --git a/typo3/sysext/perm/mod1/class.sc_mod_web_perm_ajax.php b/typo3/sysext/perm/mod1/class.sc_mod_web_perm_ajax.php
deleted file mode 100644 (file)
index c5f9e14..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-/***************************************************************
- *  Copyright notice
- *
- *  (c) 2007-2013 mehrwert (typo3@mehrwert.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.
- *
- *  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!
- ***************************************************************/
-$GLOBALS['LANG']->includeLLFile('EXT:lang/locallang_mod_web_perm.xlf');
-/*
- * @deprecated since 6.0, the classname SC_mod_web_perm_ajax and this file is obsolete
- * and will be removed with 6.2. The class was renamed and is now located at:
- * typo3/sysext/perm/Classes/Controller/PermissionAjaxController.php
- */
-require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('perm') . 'Classes/Controller/PermissionAjaxController.php';
-?>
\ No newline at end of file
index dd8c204..9eb93f1 100755 (executable)
  */
 $LANG->includeLLFile('EXT:lang/locallang_mod_web_perm.xlf');
 $BE_USER->modAccess($MCONF, 1);
-/*
- * @deprecated since 6.0, the classname SC_mod_web_perm_index and this file is obsolete
- * and will be removed with 6.2. The class was renamed and is now located at:
- * typo3/sysext/perm/Classes/Controller/PermissionModuleController.php
- */
-require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('perm') . 'Classes/Controller/PermissionModuleController.php';
+
 // Make instance:
 $SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Perm\\Controller\\PermissionModuleController');
 $SOBE->init();