[BUGFIX] Fix comment about hidden doktypes 19/41719/3
authorFrederic Gaus <frederic.gaus@flagbit.de>
Mon, 20 Jul 2015 09:18:05 +0000 (11:18 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 20 Jul 2015 10:36:55 +0000 (12:36 +0200)
Resolves: #68380
Releases: master
Change-Id: I9520e9d9e57899b1079ce7aa8a2203d3d20485c2
Reviewed-on: http://review.typo3.org/41719
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Classes/Controller/EditDocumentController.php

index 28b17a8..62c2651 100644 (file)
@@ -1124,7 +1124,7 @@ class EditDocumentController {
                                if (isset($pagesTSconfig['TCEMAIN.']['preview.']['disableButtonForDokType'])) {
                                        $excludeDokTypes = GeneralUtility::intExplode(',', $pagesTSconfig['TCEMAIN.']['preview.']['disableButtonForDokType'], TRUE);
                                } else {
-                                       // exclude sysfolders and recycler by default
+                                       // exclude sysfolders, spacers and recycler by default
                                        $excludeDokTypes = array(PageRepository::DOKTYPE_RECYCLER, PageRepository::DOKTYPE_SYSFOLDER, PageRepository::DOKTYPE_SPACER);
                                }
                                if (!in_array((int)$this->pageinfo['doktype'], $excludeDokTypes, TRUE) || isset($pagesTSconfig['TCEMAIN.']['preview.'][$this->firstEl['table'].'.']['previewPageId'])) {