$proto = array_shift($aActions);
$act = array_shift($actions);
- if (1||$proto == 'mailto') {
+ if ($proto == 'mailto') {
if (($cmd == 'post') || ($cmd == 'owner')) {
$url = 'src/compose.php?'.
$links[] = makeComposeLink($url, $fieldsdescr['reply']);
}
} else if ($proto == 'href') {
- $oTemplate->assign('uri', $act);
- $oTemplate->assign('target', '_blank');
- $oTemplate->assign('text', $fieldsdescr[$cmd]);
- $output = $oTemplate->fetch('hyperlink.tpl');
- $links[] = $output;
+ $links[] = create_hyperlink($act, $fieldsdescr[$cmd], '_blank');
}
}