Bug #17132 » 5260_v2.patch
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')));
|
||
if (t3lib_div::isFirstPartOfStr($path, PATH_site)) {
|
||
$href = t3lib_div::getIndpEnv('TYPO3_SITE_URL') . substr($path, strlen(PATH_site));
|
||
$aOnClick = "return top.openUrlInWindow('".$href."','WebFile');";
|
||
$code = '<a href="#" title="'.htmlspecialchars($code).'" onclick="'.htmlspecialchars($aOnClick).'">'.t3lib_div::fixed_lgd_cs($code,$this->fixedL).'</a>';
|
||
}
|
- « Previous
- 1
- 2
- Next »