Task #24551 » getURL-typo3-sysext-tstemplate_info.diff
typo3/sysext/tstemplate_info/class.tx_tstemplateinfo.php | ||
---|---|---|
$fI = t3lib_div::split_fileref($e[file]);
|
||
if (@is_file($path) && t3lib_div::inList($this->pObj->textExtensions, $fI['fileext'])) {
|
||
if (filesize($path) < $TCA['sys_template']['columns']['resources']['config']['max_size']*1024) {
|
||
$fileContent = t3lib_div::getUrl($path);
|
||
$fileContent = t3lib_div::getURL($path);
|
||
$outCode = $GLOBALS['LANG']->getLL('file'). ' <strong>' . $e[file] . '</strong><BR>';
|
||
$outCode.= '<textarea name="edit[file]" rows="'.$numberOfRows.'" wrap="off" class="fixed-font enable-tab"'.$this->pObj->doc->formWidthText(48, 'width:98%;height:70%', 'off').' class="fixed-font">'.t3lib_div::formatForTextarea($fileContent).'</textarea>';
|
||
$outCode.= '<input type="Hidden" name="edit[filename]" value="'.$e[file].'">';
|