open attachment in new window

This commit is contained in:
Friendika 2011-05-24 20:59:56 -07:00
parent 3239381447
commit 20a1500c25

View file

@ -2569,7 +2569,7 @@ function prepare_body($item,$attach = false) {
$title = ((strlen(trim($matches[4]))) ? escape_tags(trim($matches[4])) : escape_tags($matches[1]));
$title .= ' ' . $matches[2] . ' ' . t('bytes');
$s .= '<a href="' . strip_tags($matches[1]) . '" title="' . $title . '" class="attachlink" >' . $icon . '</a>';
$s .= '<a href="' . strip_tags($matches[1]) . '" title="' . $title . '" class="attachlink" target="external-link" >' . $icon . '</a>';
}
}
}