[TASK] Install tool configuration system
[Packages/TYPO3.CMS.git] / typo3 / alt_doc_nodoc.php
index 1e2347b..7e1eba2 100644 (file)
  *
  *  This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
+
 /**
  * No-document script
  * This is used by eg. the Doc module if no documents is registered as "open"
  * (a concept which is better known from the "classic backend"...)
  *
- * Revised for TYPO3 3.6 November/2003 by Kasper Skårhøj
- * XHTML compliant
- *
  * @author Kasper Skårhøj <kasperYYYY@typo3.com>
  */
-require 'init.php';
-$LANG->includeLLFile('EXT:lang/locallang_alt_doc.xml');
+require __DIR__ . '/init.php';
 
-// Make instance:
-$SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Backend\Controller\NoDocumentsOpenController');
-$SOBE->init();
-$SOBE->main();
-$SOBE->printContent();
-?>
\ No newline at end of file
+$noDocumentsOpenController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Backend\Controller\NoDocumentsOpenController');
+$noDocumentsOpenController->main();
+$noDocumentsOpenController->printContent();
+?>