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

Dmitry Dulepov [typo3] dmitry at typo3.org
Wed Jun 18 12:01:33 CEST 2008


Hi!

Stefan Geith wrote:
> 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']...

Please, use t3lib_extMgm::isLoaded('sg_userdata') API call instead. $TYPO3_LOADED_EXT is not a variable for common use. It may even cease to exist in future.

-- 
Dmitry Dulepov
E-mail: dmitry at typo3.org
Skype: callto:liels_bugs
TYPO3 technical: http://typo3bloke.net/




More information about the TYPO3-dev mailing list