From 31c05121f85ba92113c323c08fc7f4b773ecc9f8 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Tue, 2 Jun 2015 00:19:17 +0200 Subject: [PATCH] HtmlInput :: anchor_empty add a title --- include/class_html_input.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/class_html_input.php b/include/class_html_input.php index fc820f63a..c45f38259 100755 --- a/include/class_html_input.php +++ b/include/class_html_input.php @@ -729,16 +729,17 @@ class HtmlInput * onclick = function() {...} * @param type $p_text Text to display * @param type $p_id id of the link + * @param type $type title of the link * @code * echo HtmlInput::anchor_empty('go','go_id'); * * @endcode */ - static function anchor_empty($p_text,$p_id) + static function anchor_empty($p_text,$p_id,$p_title="") { $p_url="javascript:void(0)"; - $str=sprintf('%s', - $p_id,$p_text); + $str=sprintf('%s', + $p_id,$p_title,$p_text); return $str; } /**