[TYPO3-v4] Postponing 4.5 RC1
François Suter
fsu-lists at cobweb.ch
Tue Jan 18 20:19:11 CET 2011
Hi,
Oh, I had never noticed the ugly
$GLOBALS['TBE_TEMPLATE'] = t3lib_div::makeInstance('template');
at the end of template.php.
> i researched again why i needed template. For extension configuration an
> instance of t3lib_tsparser_ext is done which needs an instance of
> template because of silly formWidth() call. maybe i can change that in
> constructor as it's not needed for quite operations
Another possibility: why not add a constructor to t3lib_tsparser_ext,
where $GLOBALS['TBE_TEMPLATE'] is loaded with an instance of "template"
if not already existing?
This places the dependency where it belongs IMO. What do you think?
Cheers
--
Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
More information about the TYPO3-project-v4
mailing list