added cat modifier to distribution

This commit is contained in:
mohrt
2003-02-24 16:31:47 +00:00
parent 2ebecbe2e6
commit ebb54d1e73
2 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<?php
/*
* Smarty plugin
* -------------------------------------------------------------
* Type: modifier
* Name: cat
* Version: 1.0
* Date: Feb 24, 2003
* Author: Monte Ohrt <monte@ispi.net>
* Purpose: catentate a value to a variable
* Input: string to catenate
* Example: {$var|cat:"foo"}
* -------------------------------------------------------------
*/
function smarty_modifier_cat($string, $cat)
{
return $string . $cat;
}
/* vim: set expandtab: */
?>