[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 03:39:33 +0000 (04:39 +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/9068
Reviewed-by: Philipp Gampe
Reviewed-by: Stanislas Rolland
Tested-by: Stanislas Rolland
typo3/sysext/rtehtmlarea/mod4/class.tx_rtehtmlarea_select_image.php

index cbee876..c853b31 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);
@@ -1242,4 +1242,4 @@ if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLA
        include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/rtehtmlarea/mod4/class.tx_rtehtmlarea_select_image.php']);
 }
 
-?>
\ No newline at end of file
+?>