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

1
NEWS
View File

@@ -1,3 +1,4 @@
- added cat modifier (Monte)
- added << >> <> support to if statments (SMK, Monte)
- fix _assign_smarty_interface to not overwrite keys
other than 'request' (Jerome Poudevigne, Monte)

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: */
?>