[BUGFIX] Namespace: addToolbarItem on TYPO3backend
authorFelix Kopp <felix-source@phorax.com>
Fri, 24 Aug 2012 12:38:56 +0000 (14:38 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 24 Aug 2012 15:37:56 +0000 (17:37 +0200)
Change GLOBALS reference to not include namespace.

Change-Id: I98ef141273f5101587876e9a781dfe26d39ec50c
Fixes: #40123
Related: #40095
Releases: 6.0
Reviewed-on: http://review.typo3.org/14037
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/opendocs/registerToolbarItem.php
typo3/sysext/sys_action/toolbarmenu/registerToolbarItem.php

index fc2964e..2b8826e 100644 (file)
@@ -3,9 +3,9 @@ if (!defined('TYPO3_MODE')) {
        die('Access denied.');
 }
 if (TYPO3_MODE == 'BE') {
-       // First include the class file
+               // First include the class file
        include_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('opendocs') . 'class.tx_opendocs.php';
-       // Now register the class as toolbar item
-       $GLOBALS['TYPO3\\CMS\\Backend\\Controller\\BackendController']->addToolbarItem('opendocs', 'TYPO3\\CMS\\Opendocs\\Controller\\OpendocsController');
+               // Now register the class as toolbar item
+       $GLOBALS['TYPO3backend']->addToolbarItem('opendocs', 'TYPO3\\CMS\\Opendocs\\Controller\\OpendocsController');
 }
 ?>
\ No newline at end of file
index 469aac3..2b5a718 100644 (file)
@@ -6,6 +6,6 @@ if (TYPO3_MODE == 'BE') {
        // First include the class file
        include_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('sys_action') . 'toolbarmenu/class.tx_sysaction_toolbarmenu.php';
        // Now register the class as toolbar item
-       $GLOBALS['TYPO3\\CMS\\Backend\\Controller\\BackendController']->addToolbarItem('sys_action', 'TYPO3\\CMS\\SysAction\\ActionToolbarMenu');
+       $GLOBALS['TYPO3backend']->addToolbarItem('sys_action', 'TYPO3\\CMS\\SysAction\\ActionToolbarMenu');
 }
 ?>
\ No newline at end of file