[TASK] Deprecate page.bgImg TypoScript option 14/39614/3
authorWouter Wolters <typo3@wouterwolters.nl>
Tue, 19 May 2015 09:23:36 +0000 (11:23 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 19 May 2015 14:57:47 +0000 (16:57 +0200)
Resolves: #67029
Releases: master
Change-Id: I0f92ea91875455ea0e6726b11cf07f53b468e3a6
Reviewed-on: http://review.typo3.org/39614
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Documentation/Changelog/master/Deprecation-67029-DeprecatePageBgImgOption.rst [new file with mode: 0644]
typo3/sysext/frontend/Classes/Page/PageGenerator.php

diff --git a/typo3/sysext/core/Documentation/Changelog/master/Deprecation-67029-DeprecatePageBgImgOption.rst b/typo3/sysext/core/Documentation/Changelog/master/Deprecation-67029-DeprecatePageBgImgOption.rst
new file mode 100644 (file)
index 0000000..65bcb4d
--- /dev/null
@@ -0,0 +1,27 @@
+=================================================
+Deprecation: #67029 - Deprecate page.bgImg option
+=================================================
+
+Description
+===========
+
+The option ``page.bgImg`` has been marked for deprecation, and will
+be removed with TYPO3 CMS 8.
+
+
+Impact
+======
+
+Using ``page.bgImg`` will throw a deprecation message.
+
+
+Affected Installations
+======================
+
+Any installation which uses this TypoScript option.
+
+
+Migration
+=========
+
+Use CSS to set a background on the body.
\ No newline at end of file
index 2ede73b..330c82d 100644 (file)
@@ -996,6 +996,7 @@ class PageGenerator {
                        }
                        $bodyTag = $tsfe->pSetup['bodyTag'] ? $tsfe->pSetup['bodyTag'] : $defBT;
                        if ($bgImg = $tsfe->cObj->getImgResource($tsfe->pSetup['bgImg'], $tsfe->pSetup['bgImg.'])) {
+                               GeneralUtility::deprecationLog('The option "page.bgImg" is deprecated since TYPO3 CMS 7, and will be removed with CMS 8');
                                $bodyTag = preg_replace('/>$/', '', trim($bodyTag)) . ' background="' . $tsfe->absRefPrefix . $bgImg[3] . '">';
                        }
                        if (isset($tsfe->pSetup['bodyTagMargins'])) {