Project

General

Profile

Actions

Bug #38868

closed

Relative image paths not working in Backend

Added by Benny Schimmer almost 12 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2012-07-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.7
PHP Version:
5.3
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

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

Actions

Also available in: Atom PDF