added the smarty var to the hook_params, this makes it possible to create modules that can assign variables to the smarty local scope
This commit is contained in:
@@ -176,6 +176,7 @@ function smartyHook($params, &$smarty)
|
|||||||
{
|
{
|
||||||
$id_module = null;
|
$id_module = null;
|
||||||
$hook_params = $params;
|
$hook_params = $params;
|
||||||
|
$hook_params['smarty'] = $smarty;
|
||||||
if (!empty($params['mod']))
|
if (!empty($params['mod']))
|
||||||
{
|
{
|
||||||
$module = Module::getInstanceByName($params['mod']);
|
$module = Module::getInstanceByName($params['mod']);
|
||||||
|
|||||||
Reference in New Issue
Block a user