dépôts
/
garradin.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
init
[garradin.git]
/
include
/
libs
/
template_lite
/
plugins
/
modifier.string_format.php
1
<
?php
2
/**
3
* template_lite string_format modifier plugin
4
*
5
* Type: modifier
6
* Name: string_format
7
* Purpose: Wrapper for the PHP 'vsprintf' function
8
*/
9
function
tpl_modifier_string_format
()
10
{
11
$_args
=
func_get_args
();
12
$string
=
array_shift
(
$_args
);
13
return
vsprintf
(
$string
,
$_args
);
14
}
15
?
>