[BUGFIX] Show language flags in page module again 94/47394/7
authorGianluigi Martino <gmartino27@gmail.com>
Sun, 27 Mar 2016 22:29:27 +0000 (00:29 +0200)
committerJigal van Hemert <jigal.van.hemert@typo3.org>
Wed, 30 Mar 2016 06:55:43 +0000 (08:55 +0200)
Additionally this patch moves the initialization of TSconfig to an
earlier execution point to have all needed data collected.

Change-Id: I57ab201bae6ffc8acca3ddcc536b3efd09434054
Resolves: #75129
Releases: master, 7.6
Reviewed-on: https://review.typo3.org/47394
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
typo3/sysext/backend/Classes/Controller/PageLayoutController.php
typo3/sysext/backend/Classes/View/PageLayoutView.php

index 3604753..a611769 100755 (executable)
@@ -375,6 +375,9 @@ class PageLayoutController
                 0 => $lang->getLL('m_default')
             )
         );
+        // initialize page/be_user TSconfig settings
+        $this->modSharedTSconfig = BackendUtility::getModTSconfig($this->id, 'mod.SHARED');
+        $this->modTSconfig = BackendUtility::getModTSconfig($this->id, 'mod.' . $this->moduleName);
         // example settings:
         //  $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cms']['db_layout']['addTables']['tx_myext'] =
         //      array ('default' => array(
@@ -433,8 +436,6 @@ class PageLayoutController
             unset($availableActionArray['2']);
         }
         // page/be_user TSconfig settings and blinding of menu-items
-        $this->modSharedTSconfig = BackendUtility::getModTSconfig($this->id, 'mod.SHARED');
-        $this->modTSconfig = BackendUtility::getModTSconfig($this->id, 'mod.' . $this->moduleName);
         if ($this->modTSconfig['properties']['QEisDefault']) {
             ksort($availableActionArray);
         }
index 57addb6..c362082 100644 (file)
@@ -614,7 +614,7 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
                                 $row,
                                 $this->tt_contentConfig['showInfo'] ? 15 : 5,
                                 $disableMoveAndNewButtons,
-                                !$this->tt_contentConfig['languageMode'],
+                                true,
                                 $this->getBackendUser()->doesUserHaveAccess($this->pageinfo, Permission::CONTENT_EDIT)
                             );
                             $innerContent = '<div ' . ($row['_ORIG_uid'] ? ' class="ver-element"' : '') . '>'