Hi, I'm evaluating dokuwiki to use it as the base for a project I have. Playing with a copy of the default template, I inserted this code in header.html and it breaks all the buttons in dokuwiki (all of them ends up with a e):
<?php
$elemento = "this";
$lenguajes = array();
array_push($lenguajes, "esp");
array_push($lenguajes, "eng");
foreach( $lenguajes as $lang){
echo '<a href="doku.php?id='.$lang.'_'.$elemento.'">'.$lang.'</a> ';
}
?>
But if I directly paste the result of this block of code:
<a href="doku.php?id=esp_this">esp</a> <a href="doku.php?id=eng_this">eng</a>
to the header.html file, the buttons show nice. Why? If you see the source in the browser the resulting block is the same! But with php code the buttons render a "e" as value, so you end up looking to a bunch of buttons that say "e".
Any help is appreciated, thanks!
P.S.: when I say the buttons I mean the buttons of the team, which are created by tpl_button()? (didn't see that in the docs)