[TYPO3-dev] Include of plugins changed from 4.1.0 to 4.1.7 ?

Ernesto Baschny [cron IT] ernst at cron-it.de
Wed Jun 18 14:35:30 CEST 2008


Ernesto Baschny [cron IT] wrote: on 18.06.2008 14:08:

>> I have some plugins, that start like this:
>>
>> <snip>
>> ....
>> if (isset($TYPO3_LOADED_EXT["sg_userdata"])) {
>>     require_once(t3lib_extMgm::extPath("sg_userdata")....);
>> }
>> class tx_sgsmallads_pi1 extends txsg_pibase {
>> ....
>> </snip>
>>
>> So $TYPO3_LOADED_EXT was directly available.
>>
>> One of my customers reported, that this doesn't work
>> after an update from 4.1.0 to 4.1.7
>>
>> I now have to use ...$GLOBALS['TYPO3_LOADED_EXT']...
>>
>> When did this behaviour change ?
>> Seems it was a bugfix in 4.1.x, but I couldn't find where it happend...
> 
> I have had similar issues when upgrading some sites from 4.1.7 which 
> defined "global" variables which were not accessible anymore from inside 
> functions. It seems that the scope of inclusion of our plugins changed 
> somewhere between 4.1.3 and 4.1.6, but I cannot spot the exact location 
> yet.

Ok, I isolated the problem part, which was this patch:

http://forge.typo3.org/repositories/revision/typo3v4-core?rev=3276

So happens on the upgrade from 4.1.5 to 4.1.6 and probably affect 
USER_INT plugins only. Is this also your case, Stefan?

Cheers,
Ernesto




More information about the TYPO3-dev mailing list