[TYPO3-core] RFC #13895: Bug: getTSConfigVal called with wrong object
Andreas Stauder
stauder at adbw.ch
Thu May 27 00:03:40 CEST 2010
This is an SVN patch request.
Type: Bugfix
Bugtracker references:
http://bugs.typo3.org/view.php?id=13895
Branches:
TYPO3_4-3 & trunk
Problem:
In process_cmdmap() getTSConfigVal() is called with wrong BE_USER-Object
and so not usable from a hook when GLOBALS['BE_USER'] is not set.
Solution:
-- $swapMode =
$GLOBALS['BE_USER']->getTSConfigVal('options.workspaces.swapMode');
++ $swapMode =
$this->BE_USER->getTSConfigVal('options.workspaces.swapMode');
Notes:
All other calls of BE-User objects in the method process_cmdmap() are
already $this->BE_USER.
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug_13895.diff
Type: text/x-diff
Size: 761 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100527/b6a6486d/attachment.diff>
More information about the TYPO3-team-core
mailing list