[!!!][TASK] Remove page.bgImg property 27/45527/3
authorBenni Mack <benni@typo3.org>
Wed, 30 Dec 2015 21:58:59 +0000 (22:58 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 31 Dec 2015 12:28:11 +0000 (13:28 +0100)
The deprecated TypoScript property was removed.

Resolves: #72493
Releases: master
Change-Id: Ib5fd9e845f293a0485eac9ea2af514c2422b4b10
Reviewed-on: https://review.typo3.org/45527
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Documentation/Changelog/master/Breaking-72493-RemovedTypoScriptPropertyPagebgImg.rst [new file with mode: 0644]
typo3/sysext/frontend/Classes/Page/PageGenerator.php

diff --git a/typo3/sysext/core/Documentation/Changelog/master/Breaking-72493-RemovedTypoScriptPropertyPagebgImg.rst b/typo3/sysext/core/Documentation/Changelog/master/Breaking-72493-RemovedTypoScriptPropertyPagebgImg.rst
new file mode 100644 (file)
index 0000000..ba47b62
--- /dev/null
@@ -0,0 +1,20 @@
+=========================================================
+Breaking: #72493 - Removed TypoScript property page.bgImg
+=========================================================
+
+Description
+===========
+
+The TypoScript property ``page.bgImg`` has been removed.
+
+
+Impact
+======
+
+The option has no effect anymore and will not be evaluated anymore.
+
+
+Migration
+=========
+
+Use the TypoScript property ``page.bodyTagCObject`` instead.
index 38b389c..9052490 100644 (file)
@@ -906,10 +906,6 @@ class PageGenerator
                 $defBT = $tsfe->defaultBodyTag;
             }
             $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'])) {
                 $margins = (int)$tsfe->pSetup['bodyTagMargins'];
                 if ($tsfe->pSetup['bodyTagMargins.']['useCSS']) {