X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=inc%2Fsmarty%2Fnode_methodz%2Fmodifier.string_format.php;fp=inc%2Fsmarty%2Fnode_methodz%2Fmodifier.string_format.php;h=efd621506fa5a6c9c1400104e9cca645aa71257c;hb=e586807dafc64c3fe152ab518599e6cf3f0f84e1;hp=0000000000000000000000000000000000000000;hpb=bc13d5d6e1834068f8b690c32bba114e352dacdd;p=mirrors%2FKyberia-bloodline.git diff --git a/inc/smarty/node_methodz/modifier.string_format.php b/inc/smarty/node_methodz/modifier.string_format.php new file mode 100644 index 0000000..efd6215 --- /dev/null +++ b/inc/smarty/node_methodz/modifier.string_format.php @@ -0,0 +1,28 @@ + + * Name: string_format
+ * Purpose: format strings via sprintf + * @link http://smarty.php.net/manual/en/language.modifier.string.format.php + * string_format (Smarty online manual) + * @param string + * @param string + * @return string + */ +function smarty_modifier_string_format($string, $format) +{ + return sprintf($format, $string); +} + +/* vim: set expandtab: */ + +?>