[BUGFIX] SoftReferenceIndex support for more values in class attribute 52/29852/2
authorMarc Bastian Heinrichs <typo3@mbh-software.de>
Sun, 4 May 2014 10:42:47 +0000 (12:42 +0200)
committerMarkus Klein <klein.t3@mfc-linz.at>
Sun, 4 May 2014 14:57:30 +0000 (16:57 +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/29852
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/core/Classes/Database/SoftReferenceIndex.php

index 0c2dd17..7a88635 100644 (file)
@@ -792,7 +792,7 @@ class SoftReferenceIndex {
                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'] !== '') {
@@ -831,4 +831,4 @@ class SoftReferenceIndex {
 }
 
 
-?>
\ No newline at end of file
+?>