first commit
This commit is contained in:
19
class/smarty_plugins/function.get_smarty.php
Normal file
19
class/smarty_plugins/function.get_smarty.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* Smarty plugin
|
||||
* -------------------------------------------------------------
|
||||
* Type: function
|
||||
* Name: eval
|
||||
* Purpose: evaluate a template variable as a template
|
||||
* -------------------------------------------------------------
|
||||
*/
|
||||
|
||||
function smarty_function_get_smarty($params, &$smarty)
|
||||
{
|
||||
if (!empty($params['assign'])) {
|
||||
$smarty->assign($params['assign'], $smarty);
|
||||
} else {
|
||||
return $smarty;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user