[TYPO3-core] RFC #12429: Method "t3lib_tstemplate::procesIncludes" has misspelled "proces"
Xavier Perseguers
typo3 at perseguers.ch
Tue Nov 3 21:23:36 CET 2009
Bernhard Kraft wrote:
> Xavier Perseguers schrieb:
>
>> BTW, I figured out today that INCLUDE does not work for Constants. When
>> I read your description, it seems that it should work. Is it a known issue?
>
> From the responsible code in t3lib_tsparser.php. Especially have a look at the
> comments:
>
> ----------------------
> } elseif (preg_match('/\r?\n\s*$/',$allParts[$c-1])) { // There must be a line-break char before.
> $subparts=explode('>',$v,2);
> if (preg_match('/^\s*\r?\n/',$subparts[1])) { // There must be a line-break char after
> ----------------------
>
> I just noticed the whole thing is done using an "explode" on the whole typoScript. I guess
> it would speed up things a little bit, if a clever regular expression get's used. If I find
> time till 4.4 and remember this issue I'll take care of it.
I see that it's including with template analyzer but I cannot see the categories and comments in Constant Editor. Don't know if constants are taken anyway because what I try to achieve is only to have
some nice comments / sections for my constants I then define directly in template records.
--
Xavier Perseguers
http://xavier.perseguers.ch/en
One contribution a day keeps the fork away
More information about the TYPO3-team-core
mailing list