#38868Relative image paths not working in Backend
Description
When trying to render FE Content Element Previews in a Backend Modul in 4.7.2 Images are not rendered when using cObj->IMAGE.
The relative image paths are wrong in BE.
I found $GLOBALS[‘TSFE’]->tmpl->getFileName_backPath.
Problem:
The mentioned configuration param is not used in t3lib_stdGraphic->getImageDimensions.
Fix:
Add the following lines to the beginning of the method:
if($GLOBALS[‘TSFE’]->tmpl->getFileName_backPath) {
$imageFile = $GLOBALS[‘TSFE’]->tmpl->getFileName_backPath . $imageFile;
}
I’ll try to commit the fix to Gerrit (never comitted a fix).