Fixed bug #12046: Skinning possibilities are not available with frontend editing
authorOliver Hader <oliver.hader@typo3.org>
Fri, 25 Sep 2009 09:33:56 +0000 (09:33 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Fri, 25 Sep 2009 09:33:56 +0000 (09:33 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6049 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tsfebeuserauth.php
typo3/sysext/t3skin/ext_emconf.php
typo3/sysext/t3skin/ext_tables.php

index fbed3a3..cd47265 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-09-25  Oliver Hader  <oliver@typo3.org>
+
+       * Fixed bug #12046: Skinning possibilities are not available with frontend editing
+
 2009-09-25  Benjamin Mack  <benni@typo3.org>
 
        * Added feature #11793: Give CONTENT.table stdWrap properties (thanks to Sebastian Gebhard)
index bfd73de..c2b91a2 100644 (file)
@@ -190,8 +190,6 @@ class t3lib_tsfeBeUserAuth extends t3lib_beUserAuth {
                if (isset($this->extAdminConfig['enable.'])) {
                        foreach($this->extAdminConfig['enable.'] as $key => $value) {
                                if ($value) {
-                                       $GLOBALS['TSFE']->includeTCA();
-
                                        $this->adminPanel = t3lib_div::makeInstance('tslib_AdminPanel');
                                        $this->extAdmEnabled = true;
 
index eb48af0..e59ac84 100644 (file)
@@ -20,7 +20,7 @@ $EM_CONF[$_EXTKEY] = array(
        'priority' => '',
        'loadOrder' => '',
        'module' => '',
-       'doNotLoadInFE' => 1,
+       'doNotLoadInFE' => 0,
        'state' => 'stable',
        'internal' => 0,
        'uploadfolder' => 0,
index 93b6536..7623237 100644 (file)
@@ -1,7 +1,8 @@
 <?php
 if (!defined ('TYPO3_MODE'))   die ('Access denied.');
 
-if (TYPO3_MODE=='BE')  {
+if (TYPO3_MODE == 'BE' || (TYPO3_MODE == 'FE' && isset($GLOBALS['BE_USER']) && $GLOBALS['BE_USER']->isFrontendEditingActive())) {
+       global $TBE_STYLES;
 
                // Support for other extensions to add own icons...
        $presetSkinImgs = is_array($TBE_STYLES['skinImg']) ?