[TASK] Prevent remaining DocumentTemplate->getPageRenderer() calls
[Packages/TYPO3.CMS.git] / typo3 / sysext / recordlist / Classes / Browser / ElementBrowser.php
index d75a296..06b022b 100755 (executable)
@@ -266,7 +266,7 @@ class ElementBrowser {
        */
        public function __construct() {
                $this->iconFactory = GeneralUtility::makeInstance(IconFactory::class);
-               $this->pageRenderer = $GLOBALS['TBE_TEMPLATE']->getPageRenderer();
+               $this->pageRenderer = GeneralUtility::makeInstance(PageRenderer::class);
                $this->pageRenderer->loadJquery();
                $this->pageRenderer->loadRequireJsModule('TYPO3/CMS/Recordlist/FieldSelectBox');
        }