diff --git a/Classes/Controller/PluginController.php b/Classes/Controller/PluginController.php index 3f76d22..3ddd451 100644 --- a/Classes/Controller/PluginController.php +++ b/Classes/Controller/PluginController.php @@ -533,12 +533,10 @@ public function getMap() $item['tx_odsosm_marker']['type'] = 'image'; } elseif ($icon) { if ($this->config['icon.'][$table] == 'IMAGE') { - // rendering is necessary to have image information in $GLOBALS['TSFE']->lastImageInfo - $imageDummy = $local_cObj->cObjGetSingle( - $this->config['icon.'][$table], - $this->config['icon.'][$table . '.'] + $info = $this->cObj->getImgResource( + $this->config['icon.'][$table . '.']['file'] ?? '', + $this->config['icon.'][$table . '.']['file.'] ?? [] ); - $info = $GLOBALS['TSFE']->lastImageInfo; $item['tx_odsosm_marker'] = [ 'icon' => $info['processedFile'], 'type' => 'image',