X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Finclude%2Fsmarty%2Fplugins%2Fmodifier.string_format.php;fp=gosa-core%2Finclude%2Fsmarty%2Fplugins%2Fmodifier.string_format.php;h=9e051a578e1d28b2b42c59458845ef9d6f63ac16;hb=894aa86d1d4d57416d43052ea7b781ff680f03c9;hp=0000000000000000000000000000000000000000;hpb=7f7f21906eb6121c29823abbf96461733d642509;p=gosa.git diff --git a/gosa-core/include/smarty/plugins/modifier.string_format.php b/gosa-core/include/smarty/plugins/modifier.string_format.php new file mode 100644 index 000000000..9e051a578 --- /dev/null +++ b/gosa-core/include/smarty/plugins/modifier.string_format.php @@ -0,0 +1,29 @@ + + * 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) + * @author Monte Ohrt + * @param string + * @param string + * @return string + */ +function smarty_modifier_string_format($string, $format) +{ + return sprintf($format, $string); +} + +/* vim: set expandtab: */ + +?>