Commit da0aadf3 authored by Benni Mack's avatar Benni Mack Committed by Georg Ringer
Browse files

[TASK] Deprecate old syntax for IRRE localize synchronize in DataHandler

With TYPO3 v7.6 the internal DataHandler command to
"inlineLocalizeSynchronize" was migrated to an array-based
syntax, and TYPO3 Core uses this ever since.

With TYPO3 v11 it is time to deprecate the old behavior.

Resolves: #95317
Releases: master
Change-Id: I325f54d3cf3ab318a7528a393bf0d848e8b5e3b9

Tested-by: core-ci's avatarcore-ci <>
Tested-by: Oliver Hader's avatarOliver Hader <>
Tested-by: Wouter Wolters's avatarWouter Wolters <>
Tested-by: Georg Ringer's avatarGeorg Ringer <>
Reviewed-by: Oliver Hader's avatarOliver Hader <>
Reviewed-by: Wouter Wolters's avatarWouter Wolters <>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <>
parent 18c362f9
......@@ -4609,6 +4609,8 @@ class DataHandler implements LoggerAwareInterface
// Backward-compatibility handling
if (!is_array($command)) {
// @deprecated, will be removed in TYPO3 v12.0.
trigger_error('DataHandler command InlineLocalizeSynchronize needs to use an array as command input, which is available since TYPO3 v7.6. This fallback mechanism will be removed in TYPO3 v12.0.', E_USER_DEPRECATED);
// <field>, (localize | synchronize | <uid>):
$parts = GeneralUtility::trimExplode(',', $command);
$command = [
.. include:: ../../Includes.txt
Deprecation: #95317 - Legacy syntax for IRRE localize synchronize command in DataHandler
See :issue:`95317`
The DataHandler command "inlineLocalizeSynchronize" now
triggers a warning if the incoming command payload is sent
as comma-separated list rather than an array.
The array allows to synchronize/localize multiple values at once,
which is preferred since TYPO3 v7.6, and used in TYPO3 properly
since then.
Calling DataHandler `process_cmdmap` with an incoming
command for "inlineLocalizeSynchronize" with a payload
of comma-separated values will trigger a PHP deprecation warning.
Affected Installations
TYPO3 installations with custom code related to DataHandler
and modifying the "inlineLocalizeSynchronize" command,
which is highly unlikely. This only affects special
handling of "inline" configuration fields.
See "Important-71126-AllowToDefineMultipleInlineLocalizeSynchronizeCommands.rst"
for further information on how to migrate your incoming
DataHandler command.
.. index:: PHP-API, NotScanned, ext:core
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment