[TASK] Set a flash msg if no subpages available
[Packages/TYPO3.CMS.git] / typo3 / sysext / opendocs / registerToolbarItem.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5 if (TYPO3_MODE == 'BE') {
6 // First include the class file
7 include_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('opendocs') . 'class.tx_opendocs.php';
8 // Now register the class as toolbar item
9 $GLOBALS['TYPO3backend']->addToolbarItem('opendocs', 'TYPO3\\CMS\\Opendocs\\Controller\\OpendocsController');
10 }
11 ?>