[BUGFIX] SoftReferenceIndex support for more values in class attribute 53/29853/2
authorMarc Bastian Heinrichs <typo3@mbh-software.de>
Sun, 4 May 2014 15:01:55 +0000 (17:01 +0200)
committerMarkus Klein <klein.t3@mfc-linz.at>
Thu, 22 May 2014 22:04:26 +0000 (00:04 +0200)
The SoftReferenceIndex parses and rebuilds typolink tags, but the
support for more than one value in class attribute is missing, because
the values don't get enclosed with quotes on rebuilding.
This leads to lost classes in typolinks in exports from impexp.

Resolves: #58484
Releases: 6.2, 6.1, 4.5
Change-Id: I12ed3be7f5be36254bcee57fcb24bf2a10f92f46
Reviewed-on: https://review.typo3.org/29853
Reviewed-by: Markus Klein
Tested-by: Markus Klein
t3lib/class.t3lib_softrefproc.php

index fbceaa7..b194f15 100644 (file)
@@ -827,7 +827,7 @@ class t3lib_softrefproc {
                if (strlen($content) && isset($tLP['target']) && $tLP['target'] !== '') {
                        $content .= ' ' . $tLP['target'];
                        if (isset($tLP['class']) && $tLP['class'] !== '') {
-                               $content .= ' ' . $tLP['class'];
+                               $content .= ' "' . $tLP['class'] . '"';
                                if (isset($tLP['title']) && $tLP['title'] !== '') {
                                        $content .= ' "' . $tLP['title'] . '"';
                                        if (isset($tLP['additionalParams']) && $tLP['additionalParams'] !== '') {