[dokuwiki] Re: How to show button with dynamic label ?

  • From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Tue, 16 May 2006 13:39:38 +0200

On Tue, 16 May 2006 13:26:41 +0200
Oliver Geisen <oliver.geisen@xxxxxxxxxxxx> wrote:

> Hall,
> 
> >> in inc/html.php. If nothing exist, $label is NULL. I can only solve
> >> my problem by changeing this code, but this breaks further
> >upgrades.
> >
> > Just reimplement it the way you need it in your template (giving it
> > a different name of course).
> 
> This means to copy over the whole code. Ok, if there is no other way  
> i will do that... :-/

Well we're talking just about a few lines here but if you don't want
this how about something like this:

function my_btn($label,$id,$akey,$params,$method='get'){
  global $lang;
  $lang['btn_'.$label] = $label;
  return html_btn($label,$id,$akey,$params,$method);
}

Andi

Other related posts: