[TASK] Merge submodule fluid into core
[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\Utility\ExtensionManagementUtility::extPath('opendocs') . 'class.tx_opendocs.php';
8
9 // Now register the class as toolbar item
10 $GLOBALS['TYPO3backend']->addToolbarItem('opendocs', 'TYPO3\\CMS\\Opendocs\\Controller\\OpendocsController');
11 }
12 ?>