Task #89930
closed[BUGFIX] Only last postProcContent-hook is applied
0%
Description
postProcContent-hooks are used to update page content before it is sent
to the browser, e.g. by processing extra item markers.
When a hook is called, the current page content is passed as parameter
$_params and the modified content is returned by the hook.
Unfortunately the $_params-object is not updated in the loop which
calls all hooks. Each hook is called with the initial page content, and
only the return value of the last hook is returned as the overall
result (i.e. final page content).
This change updates the $_params-object in each iteration, so each hook-
function is called with the updated content of the previous hook. This
ensures that the modifications of all hooks are applied and not only
the modifications of the last hook.
This issue was automatically created from https://github.com/TYPO3/TYPO3.CMS/pull/221
Updated by Gerrit Code Review almost 5 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62608
Updated by Susanne Moog almost 5 years ago
- Is duplicate of Bug #89679: postProcContent hooks in felogin override each other added
Updated by Susanne Moog almost 5 years ago
- Status changed from Under Review to Closed
Duplicate of #89679