[TASK] Deprecate TSFE->whichWorkspace parameter 84/52184/3
authorBenni Mack <benni@typo3.org>
Mon, 27 Mar 2017 14:13:27 +0000 (16:13 +0200)
committerSusanne Moog <susanne.moog@typo3.org>
Mon, 27 Mar 2017 20:44:35 +0000 (22:44 +0200)
commitcf7e0a2e795fac9293be0fdbdebcdfb056053afc
treec8acd897ef07897fe362e8a0631e0ece3f5a1a1f
parent952fa853391e240cc97b0868e18a2fe96b5c875c
[TASK] Deprecate TSFE->whichWorkspace parameter

The parameter of the $TSFE->whichWorkspace() method decides
whether the UID of the current workspace should be returned or
the actual "title" of the sys_workspace record.

As this parameter is not in use anymore and clearly makes this function
harder to understand why and when someone could use this, this property
is marked as deprecated.

Instead, fetching the workspace title should happen in the place where it
is needed.

Resolves: #80485
Releases: master
Change-Id: I06512e40c48b35826c0d0a89cc8c4cdcdc8773e6
Reviewed-on: https://review.typo3.org/52184
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
typo3/sysext/core/Documentation/Changelog/master/Deprecation-80485-MethodParameterOfTSFE-whichWorkspaceToReturnTheWorkspaceTitle.rst [new file with mode: 0644]
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php