diff options
Diffstat (limited to 'tests/UnitTests/__shared/PHPunitplugins/function.getvar.php')
| -rw-r--r-- | tests/UnitTests/__shared/PHPunitplugins/function.getvar.php | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/tests/UnitTests/__shared/PHPunitplugins/function.getvar.php b/tests/UnitTests/__shared/PHPunitplugins/function.getvar.php deleted file mode 100644 index c1b0756b..00000000 --- a/tests/UnitTests/__shared/PHPunitplugins/function.getvar.php +++ /dev/null @@ -1,26 +0,0 @@ -<?php -/** - * Smarty plugin getvar - * - - - */ - -use Smarty\Template; - -/** - * Smarty {getvar} - * - * @param array $params parameter array - * @param object $template template object - * - * @return string - */ -function smarty_function_getvar($params, Template $template) -{ - if (isset($params[ 'assign' ])) { - $template->assign($params[ 'assign' ], $template->getTemplateVars($params[ 'var' ])); - } else { - return $template->getTemplateVars($params[ 'var' ]); - } -} |
