summaryrefslogtreecommitdiff
path: root/inc/html.php
diff options
context:
space:
mode:
authorAnika Henke <anika@selfthinker.org>2010-11-07 09:54:40 +0000
committerAnika Henke <anika@selfthinker.org>2010-11-07 09:54:40 +0000
commitf5baf821ee5f6ab5b009bb94aff6f43f686d3329 (patch)
tree4e083da5c32159e17f5ec8ea9b7ebeff8549eff6 /inc/html.php
parent41c27d5a7c577979cacd974b3763904192487637 (diff)
downloadrpg-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/html.php')
-rw-r--r--inc/html.php5
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 = '';