From f5baf821ee5f6ab5b009bb94aff6f43f686d3329 Mon Sep 17 00:00:00 2001 From: Anika Henke Date: Sun, 7 Nov 2010 09:54:40 +0000 Subject: make custom buttons possible with html_btn() without the need of global $lang (more consistent with tpl_pagelink()) --- inc/html.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inc/html.php b/inc/html.php index 02afa00e9..7f502afa5 100644 --- a/inc/html.php +++ b/inc/html.php @@ -162,11 +162,12 @@ function html_topbtn(){ * * @author Andreas Gohr */ -function html_btn($name,$id,$akey,$params,$method='get',$tooltip=''){ +function html_btn($name,$id,$akey,$params,$method='get',$tooltip='',$label=false){ global $conf; global $lang; - $label = $lang['btn_'.$name]; + if (!$label) + $label = $lang['btn_'.$name]; $ret = ''; $tip = ''; -- cgit v1.2.3