[BUGFIX] EXT:documentation does not support translated manuals
[Packages/TYPO3.CMS.git] / typo3 / wizard_add.php
index a9fffd6..ac7b7ad 100644 (file)
  *
  *  This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
+
 /**
  * Wizard to add new records to a group/select TCEform formfield
  *
- * Revised for TYPO3 3.6 November/2003 by Kasper Skårhøj
- *
  * @author Kasper Skårhøj <kasperYYYY@typo3.com>
  */
-$BACK_PATH = '';
-require 'init.php';
-$LANG->includeLLFile('EXT:lang/locallang_wizards.xlf');
-/*
- * @deprecated since 6.0, the classname SC_wizard_add 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/Wizard/AddController.php
- */
-require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('backend') . 'Classes/Controller/Wizard/AddController.php';
-// Make instance:
-$SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\Wizard\\AddController');
-$SOBE->init();
-// Include files?
-foreach ($SOBE->include_once as $INC_FILE) {
-       include_once $INC_FILE;
-}
-$SOBE->main();
-?>
\ No newline at end of file
+require __DIR__ . '/init.php';
+
+$addController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\Wizard\\AddController');
+$addController->main();