mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-27 02:43:47 +01:00
Add var_dump template function
This commit is contained in:
parent
92f3d0be8e
commit
edc625b85f
1 changed files with 5 additions and 0 deletions
|
@ -128,6 +128,7 @@ class LStemplate {
|
|||
self :: registerFunction("img", "LStemplate_smarty_img");
|
||||
self :: registerFunction("css", "LStemplate_smarty_css");
|
||||
self :: registerFunction("uniqid", "LStemplate_smarty_uniqid");
|
||||
self :: registerFunction("var_dump", "LStemplate_smarty_var_dump");
|
||||
|
||||
// Define public root URL
|
||||
$public_root_url = LSconfig :: get('public_root_url', '/', 'string');
|
||||
|
@ -473,6 +474,10 @@ function LStemplate_smarty_uniqid($params, &$smarty) {
|
|||
$smarty -> assign($params['var'], uniqid());
|
||||
}
|
||||
|
||||
function LStemplate_smarty_var_dump($params, &$smarty) {
|
||||
var_dump($params['data']);
|
||||
}
|
||||
|
||||
// Errors
|
||||
LSerror :: defineError('LStemplate_01',
|
||||
_("LStemplate : Template %{file} not found.")
|
||||
|
|
Loading…
Reference in a new issue