diff options
author | Anika Henke <anika@selfthinker.org> | 2010-11-07 09:54:40 +0000 |
---|---|---|
committer | Anika Henke <anika@selfthinker.org> | 2010-11-07 09:54:40 +0000 |
commit | f5baf821ee5f6ab5b009bb94aff6f43f686d3329 (patch) | |
tree | 4e083da5c32159e17f5ec8ea9b7ebeff8549eff6 /inc | |
parent | 41c27d5a7c577979cacd974b3763904192487637 (diff) | |
download | rpg-f5baf821ee5f6ab5b009bb94aff6f43f686d3329.tar.gz rpg-f5baf821ee5f6ab5b009bb94aff6f43f686d3329.tar.bz2 |
make custom buttons possible with html_btn() without the need of global $lang (more consistent with tpl_pagelink())
Diffstat (limited to 'inc')
-rw-r--r-- | inc/html.php | 5 |
1 files 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 <andi@splitbrain.org> */ -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 = ''; |