diff options
| author | BLANC Jean-Baptiste <[email protected]> | 2009-06-19 15:09:07 +0200 |
|---|---|---|
| committer | BLANC Jean-Baptiste <[email protected]> | 2009-06-19 15:09:07 +0200 |
| commit | 4eee7bf71fafccdc70de7b9342f077a42ec80bcf (patch) | |
| tree | 5d4140050ed36ff53bf6bfb07514e4d0818a0012 /applications/core/lib/Smarty/plugins/modifier.replace.php | |
| parent | ab70f9c5a115badd5fa0c89e8f98662617a24fa9 (diff) | |
| download | tbk-master.tar.gz | |
Diffstat (limited to 'applications/core/lib/Smarty/plugins/modifier.replace.php')
| -rw-r--r-- | applications/core/lib/Smarty/plugins/modifier.replace.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/applications/core/lib/Smarty/plugins/modifier.replace.php b/applications/core/lib/Smarty/plugins/modifier.replace.php new file mode 100644 index 0000000..df041c8 --- /dev/null +++ b/applications/core/lib/Smarty/plugins/modifier.replace.php @@ -0,0 +1,30 @@ +<?php +/** + * Smarty plugin + * @package Smarty + * @subpackage plugins + */ + + +/** + * Smarty replace modifier plugin + * + * Type: modifier<br> + * Name: replace<br> + * Purpose: simple search/replace + * @link http://smarty.php.net/manual/en/language.modifier.replace.php + * replace (Smarty online manual) + * @author Monte Ohrt <monte at ohrt dot com> + * @param string + * @param string + * @param string + * @return string + */ +function smarty_modifier_replace($string, $search, $replace) +{ + return str_replace($search, $replace, $string); +} + +/* vim: set expandtab: */ + +?> |
