[TYPO3-core] RFC bug #17360: beforeWrap property of TMENU is not recognized anymore

JoH asenau info at cybercraft.de
Sat Jan 29 20:11:12 CET 2011


> could you provide a ts snippet to test the scenario? What is the reason
> for stop working?

The GLUECK template mentioned in #16756 is using it in it's menu setup.

The reason for the bug is $pref being processed by stdWrap before it is 
used to determine the array key $pref.'Wrap'

$pref can be "before" or "after" and in versions before 4.5, the whole 
stuff was in just one line, so $pref had the same value for both stdWrap 
and $pref.'Wrap'.

"before" resulted in "beforeWrap" and "after" was used to get "afterWrap".

In the current version the value of $pref might be processed by stdWrap 
so it might change to something else as "before" or "after". This is why 
we have to make sure that $pref is not changed at all before it used to 
get the appropriate wrap.

HTH

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com


More information about the TYPO3-team-core mailing list