From: Ingo Renner Date: Sun, 20 Jan 2008 12:40:38 +0000 (+0000) Subject: fixed check for wrong implementation of toolbarItem interface X-Git-Tag: TYPO3_4-2-0beta1~158 X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/commitdiff_plain/4df384e0ff5b5a55c5494bc12f453d569b9e1d48 fixed check for wrong implementation of toolbarItem interface git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2930 709f56b5-9817-0410-a4d7-c38de5d9e867 --- diff --git a/ChangeLog b/ChangeLog index 3db59d424fc3..962b6ea5c441 100755 --- a/ChangeLog +++ b/ChangeLog @@ -10,7 +10,7 @@ 2008-01-20 Ingo Renner * fixed bug #7211: "Start in Module" does not work anymore - * corrected message for wrong implementation of toolbarItem interface + * fixed check for wrong implementation of toolbarItem interface 2008-01-19 Stanislas Rolland diff --git a/typo3/backend.php b/typo3/backend.php index 3d0e541210fa..10cdb91a8046 100644 --- a/typo3/backend.php +++ b/typo3/backend.php @@ -724,12 +724,14 @@ class TYPO3backend { /** * adds an item to the toolbar * - * @param string toolbar item class reference, f.e. EXT:toolbarextension/class.tx_toolbarextension_coolitem.php:tx_toolbarExtension_coolItem + * @param string toolbar item class reference, f.e. EXT:toolbarextension/class.tx_toolbarextension_coolitem.php:tx_toolbarExtension_coolItem + * @param backend_toolbarItem object of an backend_toolbarItem implementation + * @return void */ public function addToolbarItem($toolbarItemName, $toolbarItemClassReference) { $toolbarItem = t3lib_div::getUserObj($toolbarItemClassReference); - if(!($toolbarItem instanceof t3lib_backendToolbarItem)) { + if(!($toolbarItem instanceof backend_toolbarItem)) { throw new UnexpectedValueException('$toolbarItem "'.$toolbarItemName.'" must implement interface backend_toolbarItem', 1195125501); }