From 388b837f780675a01842abeae43ca3a38f00f4c3 Mon Sep 17 00:00:00 2001 From: Benni Mack Date: Thu, 2 Nov 2017 06:54:47 +0100 Subject: [PATCH] [!!!][TASK] Streamline ExtensionManagementUtility The following functionality within this API class is marked as deprecated: - siteRelPath() - getExtensionKeyByPrefix() - removeCacheFiles() - second parameter of isLoaded() Additionally, the following more strict rules apply now: - addNavigationComponent() always requires an $extensionKey - First parameter of addLLrefForTCAdescr() must not be empty - addService() requires $serviceType and $info to be non-empty - addPlugin() always requires an $extensionKey - addStaticFile() throws exceptions if no extension key or path is set - addTypoScript() expects $type to be either "setup" or "constants" This is meant for extension developers using the current API more properly than before. Resolves: #82899 Releases: master Change-Id: Ie5beddd4787da25f05f76ff37c6ec55a92257001 Reviewed-on: https://review.typo3.org/54523 Tested-by: TYPO3com Reviewed-by: Mathias Schreiber Tested-by: Mathias Schreiber Reviewed-by: Susanne Moog Tested-by: Susanne Moog --- Classes/FrontendEditPanel.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Classes/FrontendEditPanel.php b/Classes/FrontendEditPanel.php index b269820..a780acf 100644 --- a/Classes/FrontendEditPanel.php +++ b/Classes/FrontendEditPanel.php @@ -18,7 +18,6 @@ use TYPO3\CMS\Backend\Utility\BackendUtility; use TYPO3\CMS\Core\Imaging\Icon; use TYPO3\CMS\Core\Imaging\IconFactory; use TYPO3\CMS\Core\Type\Bitmask\JsConfirmation; -use TYPO3\CMS\Core\Utility\ExtensionManagementUtility; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Core\Utility\MathUtility; use TYPO3\CMS\Core\Utility\PathUtility; @@ -298,7 +297,7 @@ class FrontendEditPanel { $width = MathUtility::forceIntegerInRange($this->backendUser->getTSConfigVal('options.feedit.popupWidth'), 690, 5000, 690); $height = MathUtility::forceIntegerInRange($this->backendUser->getTSConfigVal('options.feedit.popupHeight'), 500, 5000, 500); - $onclick = 'vHWin=window.open(' . GeneralUtility::quoteJSvalue($url . '&returnUrl=' . rawurlencode(PathUtility::getAbsoluteWebPath(ExtensionManagementUtility::siteRelPath('backend') . 'Resources/Private/Templates/Close.html'))) . ',\'FEquickEditWindow\',\'width=' . $width . ',height=' . $height . ',status=0,menubar=0,scrollbars=1,resizable=1\');vHWin.focus();return false;'; + $onclick = 'vHWin=window.open(' . GeneralUtility::quoteJSvalue($url . '&returnUrl=' . rawurlencode(PathUtility::getAbsoluteWebPath(GeneralUtility::getFileAbsFileName('EXT:backend/Resources/Private/Templates/Close.html')))) . ',\'FEquickEditWindow\',\'width=' . $width . ',height=' . $height . ',status=0,menubar=0,scrollbars=1,resizable=1\');vHWin.focus();return false;'; return ''; }