Issue Bug Closed

#19156functions in interface.tslib_content_stdwraphook.php gets executed numerous times.

Peter Klein 07/26/08, 18:54 updated 08/06/10, 13:31

Description

I was using /sysext/cms/tslib/interfaces/interface.tslib_content_stdwraphook.php to extend stdWrap with some extra functionality, when I discovered a weird problem.

When i have 1 content elemnt on my page it works fine, but when there 2 CEs, my extended stdWrap command gets executed twice. With 3 CEs, its executed 3 times and so on.

I then tried using a userFunc instead, which worked perfectly (only executed once for each CE).

Attached is a simple extension that illustrates the problem.
Just install it, and include the static template.

The static template consists of this TS code:
tt_content.text.20.stdWrapHookBug = 1
tt_content.text.20.postUserFunc = user_stdWrapHookBug

(issue imported from #M9058)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.