[FOLLOWUP][TASK] Remove hard coded extension paths 46/45746/2
authorBenni Mack <benni@typo3.org>
Sat, 9 Jan 2016 06:33:14 +0000 (07:33 +0100)
committerBenni Mack <benni@typo3.org>
Sat, 9 Jan 2016 06:35:08 +0000 (07:35 +0100)
Remove dependency to t3skin in PageRenderer by adding
clear.gif to EXT:backend. This allows the pagerendeer
to only check for EXT:backend and not to t3skin, which
is not set up on travis.

Resolves: #72525
Releases: master, 7.6
Change-Id: I22202623ba7707d04fc4c71bc389ed1c48384335
Reviewed-on: https://review.typo3.org/45746
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/backend/Resources/Public/Images/clear.gif [new file with mode: 0644]
typo3/sysext/core/Classes/Page/PageRenderer.php

diff --git a/typo3/sysext/backend/Resources/Public/Images/clear.gif b/typo3/sysext/backend/Resources/Public/Images/clear.gif
new file mode 100644 (file)
index 0000000..e1d2d83
Binary files /dev/null and b/typo3/sysext/backend/Resources/Public/Images/clear.gif differ
index 75b7e22..12c10d9 100644 (file)
@@ -2097,7 +2097,7 @@ class PageRenderer implements \TYPO3\CMS\Core\SingletonInterface
                     $code .= $block;
                 }
             }
-            $clearGifPath = htmlspecialchars(GeneralUtility::locationHeaderUrl($this->backPath . ExtensionManagementUtility::extRelPath('t3skin') . 'icons/gfx/clear.gif'));
+            $clearGifPath = htmlspecialchars(GeneralUtility::locationHeaderUrl($this->backPath . ExtensionManagementUtility::extRelPath('backend') . 'Resources/Public/Images/clear.gif'));
             $out .= $this->inlineJavascriptWrap[0] . '
                                Ext.ns("TYPO3");
                                Ext.BLANK_IMAGE_URL = "' . $clearGifPath . '";