[BUGFIX] getAllowedItems called with one parameter too much
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Fri, 17 Feb 2012 09:47:35 +0000 (10:47 +0100)
committerStanislas Rolland <typo3@sjbr.ca>
Sat, 18 Feb 2012 16:07:02 +0000 (17:07 +0100)
getAllowedItems() is called with two parameters. However
the second one is not in the function-definition and not used.

Change-Id: I69cd3c4362c36adc3e6f1e2bc1ae1ba7bfb38c77
Fixes: #34030
Releases: 4.4, 4.5, 4.6, 4.7
Reviewed-on: http://review.typo3.org/9086
Reviewed-by: Stanislas Rolland
Tested-by: Stanislas Rolland
typo3/sysext/rtehtmlarea/mod4/class.tx_rtehtmlarea_select_image.php

index 27b42fb..080edef 100644 (file)
@@ -166,7 +166,7 @@ class tx_rtehtmlarea_select_image extends browse_links {
                $this->fileProcessor = t3lib_div::makeInstance('t3lib_basicFileFunctions');
                $this->fileProcessor->init($GLOBALS['FILEMOUNTS'], $GLOBALS['TYPO3_CONF_VARS']['BE']['fileExtensions']);
 
-               $this->allowedItems = $this->getAllowedItems('magic,plain,image', $this->buttonConfig);
+               $this->allowedItems = $this->getAllowedItems('magic,plain,image');
                reset($this->allowedItems);
                if (!in_array($this->act,$this->allowedItems))  {
                        $this->act = current($this->allowedItems);