fixed check for wrong implementation of toolbarItem interface
authorIngo Renner <ingo.renner@typo3.org>
Sun, 20 Jan 2008 12:40:38 +0000 (12:40 +0000)
committerIngo Renner <ingo.renner@typo3.org>
Sun, 20 Jan 2008 12:40:38 +0000 (12:40 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2930 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/backend.php

index 3db59d4..962b6ea 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,7 +10,7 @@
 2008-01-20  Ingo Renner  <ingo@typo3.org>
 
        * 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  <stanislas.rolland@fructifor.ca>
 
index 3d0e541..10cdb91 100644 (file)
@@ -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);
                }