[TYPO3-core] RFC #8385: Bugfix: Modified tslib_cObj::substituteMarkerArray() misses call parameter

Martin Kutschker martin.kutschker-n0spam at no5pam-blackbox.net
Tue May 13 13:49:46 CEST 2008


Francois Suter schrieb:
> This is an SVN patch request.
> 
> Type: Bugfix
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=8385
> 
> Branches:
> 4-2 and Trunk
> 
> Problem:
> In 4.2 tslib_cObj::substituteMarkerArray() has become a simple wrapper 
> for the newly introduced method 
> t3lib_parsehtml::substituteMarkerArray(). This new method can be called 
> with 5 parameters, the last one of which makes it possible to remove 
> unreplaced markers.
> 
> The wrapper tslib_cObj::substituteMarkerArray() has only 4 parameters 
> and thus cannot activate the replacement of unused markers, because the 
> default in t3lib_parsehtml::substituteMarkerArray() is 0.
> 
> Solution:
> Add the 5th parameter to tslib_cObj::substituteMarkerArray()

If it's a wrapper, it's deprecated. If you need more functionality use 
the "real stuff".

> Notes:
> I propose to set the value of this 5th parameter to 1, because IMO it 
> makes sense to want to remove unused markers by default.

This will change the old behaviour. It might make litte sense for most 
applications but a) you might want it that way and b) you can use the 
t3lib_div-version if you need it.

Masi



More information about the TYPO3-team-core mailing list