[TYPO3-core] RFC: Enhancement to t3lib_extfilefunc
Karsten Dambekalns
karsten at typo3.org
Tue Jun 27 23:10:01 CEST 2006
Hi.
On Tuesday 27 June 2006 22:36, Martin Kutschker wrote:
> Please add braces. The final part is IMHO easily "lost" otherwise.
>
> } else {
> $this->writelog(1,2,106,'There was no file uploaded!','');
> }
I followed the style of the lines above that one.
> And isn't this
>
> foreach($data as $value) {
> $details = preg_replace('/%s/', $value, $details, 1);
> }
>
> the same as this?
>
> vsprintf($details, $data);
Wow, nice. I didn't know vsprintf(). I'll change that accordingly. The reason
for not using str_replace() was that one cannot limit it to replace only one
occurence, btw...
Karsten
--
Karsten Dambekalns
TYPO3 Association - Active Member
http://association.typo3.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060627/add4b63f/attachment.pgp
More information about the TYPO3-team-core
mailing list