X-Git-Url: https://git.typo3.org/Packages/TYPO3.CMS.git/blobdiff_plain/384c1126bb0f281010f942846e5fd1132891d929..6ce20a36c6551e6dcf1c7d3211907e4cc86b39c7:/typo3/file_rename.php diff --git a/typo3/file_rename.php b/typo3/file_rename.php index 0db0ff5..7ebe430 100644 --- a/typo3/file_rename.php +++ b/typo3/file_rename.php @@ -13,7 +13,7 @@ * * 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 + * A copy is found in the text file GPL.txt and important notices to the license * from the author is found in LICENSE.txt distributed with these scripts. * * @@ -24,24 +24,14 @@ * * This copyright notice MUST APPEAR in all copies of the script! ***************************************************************/ + /** * Web>File: Renaming files and folders * - * Revised for TYPO3 3.6 November/2003 by Kasper Skårhøj - * * @author Kasper Skårhøj */ -$BACK_PATH = ''; -require 'init.php'; -/* - * @deprecated since 6.0, the classname SC_file_rename and this file is obsolete - * and will be removed with 6.2. The class was renamed and is now located at: - * typo3/sysext/backend/Classes/Controller/File/RenameFileController.php - */ -require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('backend') . 'Classes/Controller/File/RenameFileController.php'; -// Make instance: -$SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\File\\RenameFileController'); -$SOBE->init(); -$SOBE->main(); -$SOBE->printContent(); -?> \ No newline at end of file +require __DIR__ . '/init.php'; + +$renameFileController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\File\\RenameFileController'); +$renameFileController->main(); +$renameFileController->printContent();