Issue Bug Closed

#38868Relative image paths not working in Backend

Benny Schimmer 07/11/12, 12:09 updated 11/04/13, 11:20

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).

Reviews 1