[TYPO3-core] FYI fixed #8950: page id not availabe in TCEmain hook clearCachePostProc
Bernhard Kraft
kraftb at kraftb.at
Fri Jul 18 18:57:38 CEST 2008
Martin Kutschker wrote:
> Solution: just do it :-)
Ok :) As it doesn't modify previous behaviour.
But two "recommendations":
Remove the unnecessary:
global $TYPO3_CONF_VARS;
directly above the hook - it is already noted directly below the method
header ... and thus useless at this position.
You should put a:
$pageUid = 0;
somewhere at the very top of the method (probably at the same
bracket/indent level as the hook) - so $pageUid is defined - currently
when "clearCache_disable" is set $pageUid does not get set - but the
hook will still get called with 'uid_page' unset.
greets,
Bernhard
--
Freiheit ist immer Freiheit des Andersdenkenden.
Rosa Luxemburg, 1871-1919
--------------------------------------------------
www.think-open.at
More information about the TYPO3-team-core
mailing list