Project

General

Profile

Bug #20527 » 11216_v2.diff

Administrator Admin, 2009-05-29 13:05

View differences:

typo3/template.php (working copy)
/**
* Function to load a HTML template file with markers.
*
* When calling from own extension, use syntax getHtmlTemplate('EXT:extkey/template.html')
*
* @param string tmpl name, usually in the typo3/template/ directory
* @return string HTML of template
*/
......
if ($GLOBALS['TBE_STYLES']['htmlTemplates'][$filename]) {
$filename = $GLOBALS['TBE_STYLES']['htmlTemplates'][$filename];
}
return ($filename ? t3lib_div::getURL(t3lib_div::resolveBackPath($this->backPath . $filename)) : '');
if (substr($filename,0,4) != 'EXT:') {
$filename = t3lib_div::resolveBackPath($this->backPath . $filename);
} else {
$filename = t3lib_div::getFileAbsFileName($filename, true, true);
}
return t3lib_div::getURL($filename);
}
/**
(2-2/2)