Project

General

Profile

Actions

Bug #19156

closed

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

Added by Peter Klein over 16 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-07-26
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)


Files

T3X_stdwraphookbug-0_0_0-z-200807261857.t3x (1.86 KB) T3X_stdwraphookbug-0_0_0-z-200807261857.t3x Administrator Admin, 2008-07-26 18:54
bug_9058.diff (716 Bytes) bug_9058.diff Administrator Admin, 2009-11-18 16:18
bug_9058_v2.diff (580 Bytes) bug_9058_v2.diff Administrator Admin, 2009-11-18 17:54
Actions

Also available in: Atom PDF