diff options
Diffstat (limited to 'lib/smarty/plugins/modifiercompiler.cat.php')
-rw-r--r-- | lib/smarty/plugins/modifiercompiler.cat.php | 58 |
1 files changed, 28 insertions, 30 deletions
diff --git a/lib/smarty/plugins/modifiercompiler.cat.php b/lib/smarty/plugins/modifiercompiler.cat.php index 1cfe630..21d0e66 100644 --- a/lib/smarty/plugins/modifiercompiler.cat.php +++ b/lib/smarty/plugins/modifiercompiler.cat.php @@ -1,30 +1,28 @@ -<?php
-/**
- * Smarty plugin
- *
- * @package Smarty
- * @subpackage PluginsModifierCompiler
- */
-
-/**
- * Smarty cat modifier plugin
- *
- * Type: modifier<br>
- * Name: cat<br>
- * Date: Feb 24, 2003<br>
- * Purpose: catenate a value to a variable<br>
- * Input: string to catenate<br>
- * Example: {$var|cat:"foo"}
- *
- * @link http://smarty.php.net/manual/en/language.modifier.cat.php cat
- * (Smarty online manual)
- * @author Uwe Tews
- * @param array $params parameters
- * @return string with compiled code
- */
-function smarty_modifiercompiler_cat($params, $compiler)
-{
- return '('.implode(').(', $params).')';
-}
-
-?>
\ No newline at end of file +<?php +/** + * Smarty plugin + * + * @package Smarty + * @subpackage PluginsModifierCompiler + */ +/** + * Smarty cat modifier plugin + * Type: modifier + * Name: cat + * Date: Feb 24, 2003 + * Purpose: catenate a value to a variable + * Input: string to catenate + * Example: {$var|cat:"foo"} + * + * @link http://smarty.php.net/manual/en/language.modifier.cat.php cat + * (Smarty online manual) + * @author Uwe Tews + * + * @param array $params parameters + * + * @return string with compiled code + */ +function smarty_modifiercompiler_cat($params) +{ + return '(' . implode(').(', $params) . ')'; +} |