Merge pull request #95 from fiwswe/strpos_bug
Correctly interpret result of strpos(…)
This commit is contained in:
commit
47c3b88a4f
1 changed files with 1 additions and 1 deletions
2
tpl.php
2
tpl.php
|
@ -45,7 +45,7 @@ class tpl {
|
|||
$linktarget = wl($data['id'], $data['params'], false, '&');
|
||||
}
|
||||
$caption = $lang['btn_' . $data['type']];
|
||||
if(strpos($caption, '%s')) {
|
||||
if(strpos($caption, '%s') !== false) {
|
||||
$caption = sprintf($caption, $data['replacement']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue