[TASK] Cleanup ext_localconf.php of sysexts
[Packages/TYPO3.CMS.git] / typo3 / sysext / felogin / ext_localconf.php
index 2cf371e..13f3dd8 100644 (file)
@@ -22,21 +22,24 @@ tt_content.login {
 }
 ';
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', '# Setting ' . $_EXTKEY . ' plugin TypoScript' . $addLine . '', 43);
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
-mod.wizards.newContentElement.wizardItems.forms {
-       elements {
-               login {
-                       icon = gfx/c_wiz/login_form.gif
-                       title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:forms_login_title
-                       description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:forms_login_description
-                       tt_content_defValues {
-                               CType = login
+
+if (TYPO3_MODE === 'BE') {
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
+       mod.wizards.newContentElement.wizardItems.forms {
+               elements {
+                       login {
+                               icon = gfx/c_wiz/login_form.gif
+                               title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:forms_login_title
+                               description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:forms_login_description
+                               tt_content_defValues {
+                                       CType = login
+                               }
                        }
                }
+               show :=addToList(login)
        }
-       show :=addToList(login)
+       ');
 }
-');
 
 // Page module hook
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem'][$_EXTKEY] =