Skip to content

Commit

Permalink
[BUGFIX] Remove deprecated function ExtensionManagementUtility::extRe…
Browse files Browse the repository at this point in the history
…lPath
  • Loading branch information
IchHabRecht committed Sep 2, 2017
1 parent 175d964 commit ddd64f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Configuration/TCA/Overrides/tt_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
$sortedItems[] = [
'LLL:EXT:multicolumn/locallang_db.xml:tx_multicolumn_multicolumn',
'multicolumn',
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('multicolumn') . 'tt_content_multicolumn.gif',
'EXT:multicolumn/tt_content_multicolumn.gif',
];
$multicolumnAdded = true;
}
Expand All @@ -45,7 +45,7 @@
'--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime, fe_group',
];

$GLOBALS['TCA']['tt_content']['ctrl']['typeicons']['multicolumn'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('multicolumn') . 'tt_content_multicolumn.gif';
$GLOBALS['TCA']['tt_content']['ctrl']['typeicons']['multicolumn'] = 'EXT:multicolumn/tt_content_multicolumn.gif';

// Add tx_multicolumn_parentid to tt_content table
$tempColumns = [
Expand Down
2 changes: 1 addition & 1 deletion hooks/class.tx_multicolumn_tt_content_drawItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function preProcess(\TYPO3\CMS\Backend\View\PageLayoutView &$parentObject
// return if not multicolumn
if ($row['CType'] == 'multicolumn') {
$pageRenderer = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Page\PageRenderer::class);
$pageRenderer->addCssFile(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('multicolumn') . $this->cssFile, 'stylesheet', 'screen');
$pageRenderer->addCssFile('EXT:multicolumn/' . $this->cssFile, 'stylesheet', 'screen');

$this->flex = GeneralUtility::makeInstance('tx_multicolumn_flexform', $row['pi_flexform']);
$this->pObj = $parentObject;
Expand Down

0 comments on commit ddd64f6

Please sign in to comment.