diff --git a/typo3/sysext/recordlist/Classes/Tree/View/ElementBrowserPageTreeView.php b/typo3/sysext/recordlist/Classes/Tree/View/ElementBrowserPageTreeView.php index e236e2643fda0c18cc00818980528ce29a1f4fdd..af410fbef56f247a73fe959467b1f79864c22c71 100644 --- a/typo3/sysext/recordlist/Classes/Tree/View/ElementBrowserPageTreeView.php +++ b/typo3/sysext/recordlist/Classes/Tree/View/ElementBrowserPageTreeView.php @@ -39,15 +39,15 @@ class ElementBrowserPageTreeView extends \TYPO3\CMS\Backend\Tree\View\ElementBro * Wrapping the title in a link, if applicable. * * @param string $title Title, ready for output. - * @param array $row The record + * @param array $v The record * @param bool $ext_pArrPages If set, pages clicked will return immediately, otherwise reload page. * @return string Wrapping title string. */ - public function wrapTitle($title, $row, $ext_pArrPages) + public function wrapTitle($title, $v, $ext_pArrPages = false) { - if ($ext_pArrPages && $row['uid']) { + if ($ext_pArrPages && $v['uid']) { $iconFactory = GeneralUtility::makeInstance(IconFactory::class); - $ficon = $iconFactory->getIconForRecord('pages', $row, Icon::SIZE_SMALL)->render(); + $ficon = $iconFactory->getIconForRecord('pages', $v, Icon::SIZE_SMALL)->render(); $out = '<span data-uid="' . htmlspecialchars($row['uid']) . '" data-table="pages" data-title="' . htmlspecialchars($row['title']) . '" data-icon="' . htmlspecialchars($ficon) . '">'; $out .= '<a href="#" data-close="1">' . $title . '</a>'; $out .= '</span>';