Bug #17132 » bug_5260.diff
typo3/class.file_list.inc (working copy) | ||
---|---|---|
function linkWrapFile($code,$path) {
|
||
|
||
if (t3lib_div::isFirstPartOfStr($path,t3lib_div::getIndpEnv('TYPO3_DOCUMENT_ROOT'))) {
|
||
$href = substr($path,strlen(t3lib_div::getIndpEnv('TYPO3_DOCUMENT_ROOT')));
|
||
$href = t3lib_div::getIndpEnv('TYPO3_SITE_URL').substr($path,(strlen(t3lib_div::getIndpEnv('TYPO3_DOCUMENT_ROOT'))+1));
|
||
$aOnClick = "return top.openUrlInWindow('".$href."','WebFile');";
|
||
$code = '<a href="#" title="'.htmlspecialchars($code).'" onclick="'.htmlspecialchars($aOnClick).'">'.t3lib_div::fixed_lgd($code,$this->fixedL).'</a>';
|
||
}
|