[BUGFIX] Preview does not include L parameter on localization

The workspace module offers a way to preview accordant records
in the frontend. However, the L parameters is missing if dealing
with localized records.

The language needs to be determined from the version record, not
from the live record (which might be a placeholder as well).
Besides that, the L parameter needs to be provided as additional
GET parameter since it cannot be determined anymore later during
processing in t3lib_BEfunc::viewOnClick().

Change-Id: I97083cabce33c7f23a4f20687cfc81865cb8f68c
Fixes: #26612
Releases: 4.5, 4.6, 4.7, 6.0, 6.1
Reviewed-on: https://review.typo3.org/17277
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
[BUGFIX] Usage of caching framework broken

After publishing contents using the workspace module, caches get
flushed. However, this uses a hard-coded string frontend for the
caching framework. The default configuration for this cache is
a variable frontend instead.Since the variable frontend takes
care of serialization, there is no need to double encode the
accordant data.

Since the caching framework has been overworked with TYPO3 4.6,
this change is only valid for TYPO3 4.5.

Change-Id: I9287c7009e4a4bbdf49f8e9e56ed12519fdabbbc
Fixes: #34117
Related: #27543
Releases: 4.5
Reviewed-on: https://review.typo3.org/17239
Reviewed-by: Oliver Klee
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
[BUGFIX] Hidden state is not always visualized in module

The hidden state of a record is not always visualized in the
workspace module. This is fixed by not looking whether 'hidden'
is configured as $TCA column but to use the 'disabled' part of
the enable-fields instead.

Change-Id: I5dbb89b83988311b38a3fb7f690c9eb78478566a
Fixes: #44114
Releases: 4.5, 4.6, 4.7, 6.0, 6.1
Reviewed-on: https://review.typo3.org/17237
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
Merge remote-tracking branch 'workspaces/4.5'

9f78346 [BUGFIX] Hidden state is not always visualized in module
9e7e4de [BUGFIX] Usage of caching framework broken
61f984a [BUGFIX] Preview does not include L parameter on localization