[BUGFIX] Element Browser: checkDisplayThumbs: remove line break 73/42473/2
authorJosef Glatz <jousch@gmail.com>
Mon, 10 Aug 2015 05:27:52 +0000 (07:27 +0200)
committerBenni Mack <benni@typo3.org>
Mon, 10 Aug 2015 07:11:23 +0000 (09:11 +0200)
Removes wrap between checkbox and label by adding proper markup.

Change-Id: I50cf292b51138a33ec7e7e1f9b4bd940903005ea
Releases: master
Resolves: #68898
Reviewed-on: http://review.typo3.org/42473
Reviewed-by: Sebastian Fischer <typo3@evoweb.de>
Reviewed-by: Markus Günther <mail@markus-guenther.de>
Tested-by: Markus Günther <mail@markus-guenther.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/recordlist/Classes/Browser/ElementBrowser.php

index 2f6d9fa..d1b1537 100755 (executable)
@@ -2557,10 +2557,9 @@ class ElementBrowser {
                        $addParams = '&act=' . $this->act . '&mode=' . $this->mode
                                . '&expandFolder=' . rawurlencode($this->selectedFolder->getCombinedIdentifier())
                                . '&bparams=' . rawurlencode($this->bparams);
-                       $thumbNailCheck = BackendUtility::getFuncCheck('', 'SET[displayThumbs]', $_MOD_SETTINGS['displayThumbs'],
+                       $thumbNailCheck = '<div class="checkbox"><label for="checkDisplayThumbs">' . BackendUtility::getFuncCheck('', 'SET[displayThumbs]', $_MOD_SETTINGS['displayThumbs'],
                                        GeneralUtility::_GP('M') ? '' : $this->thisScript, $addParams, 'id="checkDisplayThumbs"')
-                               . ' <label for="checkDisplayThumbs">'
-                               . $lang->sL('LLL:EXT:lang/locallang_mod_file_list.xlf:displayThumbs', TRUE) . '</label>';
+                               . $lang->sL('LLL:EXT:lang/locallang_mod_file_list.xlf:displayThumbs', TRUE) . '</label></div>';
                        $out .= $this->doc->spacer(5) . $thumbNailCheck . $this->doc->spacer(15);
                } else {
                        $out .= $this->doc->spacer(15);