Resolves #55183: Depreciation message - remove parameter
authorstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Mon, 20 Jan 2014 22:58:10 +0000 (22:58 +0000)
committerstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Mon, 20 Jan 2014 22:58:10 +0000 (22:58 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/static_info_tables/trunk@83310 735d13b6-9817-0410-8766-e36946ffe9aa

ChangeLog
Resources/Private/LanguagePackTemplate/ext_tables.php
ext_tables.php

index d25b029..896804d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-01-20  Stanislas Rolland  <typo3@sjbr.ca>
+
+       * Resolves #55183: Depreciation message - remove parameter
+
 2014-01-18  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Re-create the tables whenever the extension update script in run
index 7d0722a..f820715 100644 (file)
@@ -28,7 +28,7 @@ foreach ($tablesAdditionalFields as $table => $additionalFields) {
                $additionalColumns = array();
                $additionalColumns[$destField] = $GLOBALS['TCA'][$table]['columns'][$sourceField];
                $additionalColumns[$destField]['label'] = 'LLL:EXT:static_info_tables_###LANG_ISO_LOWER###/Resources/Private/Language/locallang_db.xlf:' . $table . '_item.' . $destField;
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns($table, $additionalColumns, 1);
+               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns($table, $additionalColumns);
                \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes($table, $destField, '', 'after:' . $sourceField);
        }
 }
index cbad319..dc3ae62 100644 (file)
@@ -175,8 +175,8 @@ if (TYPO3_MODE == 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
                \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Configuration/TypoScript/Manager/setup.txt">');
                
                // Enable editing Static Info Tables
-               if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['static_info_tables']['tables'])) {
-                       $tableNames = array_keys($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['static_info_tables']['tables']);
+               if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$_EXTKEY]['tables'])) {
+                       $tableNames = array_keys($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$_EXTKEY]['tables']);
                        foreach ($tableNames as $tableName) {
                                if ($typo3Version < 6001000) {
                                        \SJBR\StaticInfoTables\Utility\TcaUtility::loadTCA($tableName);