Project

General

Profile

Actions

Bug #38927

closed

$_EXTCONF was not filled in ext_tables.php

Added by Stefan Froemken almost 12 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2012-07-13
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.2
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

Hello TYPO3-Team,

for each installed extension you inserted following automatically in TEMP_files*:

$_EXTKEY = 'cms';
$_EXTCONF = $TYPO3_CONF_VARS['EXT']['extConf'][$_EXTKEY];

This works good for ext_localconf.php but not for ext_tables.php.

I added following debugging lines:

t3lib_utility_Debug::debug($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'], 'extConfGlobalWhichIsFilled');
t3lib_utility_Debug::debug($TYPO3_CONF_VARS['EXT']['extConf'], 'extConfLocalWhichIsNotFilled');
t3lib_utility_Debug::debug($_EXTKEY, 'extKey');

1.debug) My modified debug in global scope works
2.debug) Your original version returns nothing
3.debug) This is the extkey. No problems with that.

So you should change your code to something like that:

$_EXTKEY = 'cms';
$_EXTCONF = $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY];

Stefan


Files

T3X_sftest-1_0_0-z-201207181642.t3x (5.03 KB) T3X_sftest-1_0_0-z-201207181642.t3x Sample Extension for testing Stefan Froemken, 2012-07-18 16:57
Actions

Also available in: Atom PDF