Commit 195fbb3f authored by Benni Mack's avatar Benni Mack Committed by Wouter Wolters
Browse files

[BUGFIX] Allow EXT:syntax for icons in new CE wizard

Allow EXT:myicon.png instead of just relative paths
for the new Content Element wizard to be more
flexible.

Resolves: #46433
Releases: master
Change-Id: I8a56650e9ebee29f1c846b59fdfef2c40dcbd496
Reviewed-on: http://review.typo3.org/40496


Reviewed-by: Jan Helke's avatarJan Helke <typo3@helke.de>
Tested-by: Jan Helke's avatarJan Helke <typo3@helke.de>
Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
parent 273cd7e7
......@@ -239,12 +239,17 @@ class NewContentElementController {
$aOnClick = "document.editForm.defValues.value=unescape('" . rawurlencode($wInfo['params']) . "');goToalt_doc();" . (!$this->onClickEvent?"window.location.hash='#sel2';":'');
}
$icon = $wInfo['icon'];
if (strpos($wInfo['icon'], '..') === FALSE) {
$icon = GeneralUtility::getFileAbsFileName($icon, TRUE, TRUE);
$icon = substr($icon, strlen(PATH_typo3));
}
$menuItems[$key]['content'] .= '
<div class="media">
' . $content . '
<div class="media-left">
<a href="#" onclick="' . htmlspecialchars($aOnClick) . '">
<img' . IconUtility::skinImg($this->doc->backPath, $wInfo['icon'], '') . ' alt="" />
<img' . IconUtility::skinImg($this->doc->backPath, $icon) . ' alt="" />
</a>
</div>
<div class="media-body">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment