"<a href=\"\\1\" target=\"_blank\">\\1</a>", $value);
} elseif ($efarr[$i]['field_type'] == ARTIFACT_EXTRAFIELDTYPE_RELATION) {
// Convert artifact id to links.
- $value = preg_replace('/\b(\d+)\b/e', "_artifactid2url('\\1')", $value);
+ $value = preg_replace_callback('/\b(\d+)\b/', create_function('$matches', 'return _artifactid2url($matches[1], \'title\');'), $value);
}
$template = str_replace('{$PostName:'.$efarr[$i]['field_name'].'}', $post_name, $template);
$template = str_replace('{$'.$efarr[$i]['field_name'].'}', $value, $template);
$vals[$i]=$arr[$i]['element_name'];
}
// Convert artifact id to links.
- $html_contents = preg_replace('/\b(\d+)\b/e', "_artifactid2url('\\1','title')", $contents);
+ $html_contents = preg_replace_callback('/\b(\d+)\b/', create_function('$matches', 'return _artifactid2url($matches[1], \'title\');'), $contents);
$edit_contents = $this->renderTextField ($extra_field_id,$contents,$size,$maxlength);
- $edit_tips = '<br/><span class="tips">'._('Tip: Enter a space-separated list of artifact ids ([#NNN] also accepted)').'</span>';
return '
- <div id="edit'.$extra_field_id.'" style="display: none;">'.$edit_contents.$edit_tips.'</div>
+ <div id="edit'.$extra_field_id.'" style="display: none;" title="'._('Tip: Enter a space-separated list of artifact ids ([#NNN] also accepted)').'" >'.$edit_contents.'</div>
<div id="show'.$extra_field_id.'" style="display: block;">'.$html_contents.'</div>';
}