[TASK] Unify primary actions in page module
[Packages/TYPO3.CMS.git] / typo3 / sysext / felogin / Classes / Hooks / CmsLayout.php
index 0961e1d..75c748c 100644 (file)
@@ -33,7 +33,7 @@ class CmsLayout implements \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInt
        public function preProcess(\TYPO3\CMS\Backend\View\PageLayoutView &$parentObject, &$drawItem, &$headerContent, &$itemContent, array &$row) {
                if ($row['CType'] === 'login') {
                        $drawItem = FALSE;
-                       $itemContent .= '<strong>' . $GLOBALS['LANG']->sL('LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:forms_login_title', TRUE) . '</strong>';
+                       $itemContent .= $parentObject->linkEditContent('<strong>' . $GLOBALS['LANG']->sL('LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:forms_login_title', TRUE) . '</strong>', $row);
                }
        }