Project

General

Profile

Bug #17132 » bug_5260.diff

Administrator Admin, 2007-03-20 15:50

View differences:

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>';
}
(1-1/2)