[BUGFIX] Element Browser rendering hook is wrong 24/17124/2
authorOliver Hader <oliver@typo3.org>
Wed, 12 Dec 2012 10:48:42 +0000 (11:48 +0100)
committerOliver Hader <oliver.hader@typo3.org>
Wed, 12 Dec 2012 10:53:17 +0000 (11:53 +0100)
The hook to modify rendering of the Element Browser is wrong.
The look-up ${$TYPO3_CONF_VARS} needs to be $TYPO3_CONV_VARS.

Change-Id: Ie87de5e479241320e648e774aa8a114685f4bf4a
Fixes: #43909
Releases: 6.0, 6.1
Reviewed-on: https://review.typo3.org/17124
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/recordlist/Classes/Controller/ElementBrowserController.php

index 47f4110..3fc228e 100644 (file)
@@ -111,8 +111,8 @@ class ElementBrowserController {
                }
                // Render type by user func
                $browserRendered = FALSE;
-               if (is_array(${$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/browse_links.php']['browserRendering']})) {
-                       foreach (${$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/browse_links.php']['browserRendering']} as $classRef) {
+               if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/browse_links.php']['browserRendering'])) {
+                       foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/browse_links.php']['browserRendering'] as $classRef) {
                                $browserRenderObj = \TYPO3\CMS\Core\Utility\GeneralUtility::getUserObj($classRef);
                                if (is_object($browserRenderObj) && method_exists($browserRenderObj, 'isValid') && method_exists($browserRenderObj, 'render')) {
                                        if ($browserRenderObj->isValid($this->mode, $this)) {