mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-30 21:45:01 +03:00
возможность в хуках шаблонов передавать параметры
This commit is contained in:
parent
0fc43f914f
commit
23199c0f64
|
@ -29,8 +29,9 @@ function smarty_function_hook($aParams,&$oSmarty) {
|
|||
return;
|
||||
}
|
||||
|
||||
$sHookName='template_'.strtolower($aParams['run']);
|
||||
$aResultHook=Engine::getInstance()->Hook_Run($sHookName);
|
||||
$sHookName='template_'.strtolower($aParams['run']);
|
||||
unset($aParams['run']);
|
||||
$aResultHook=Engine::getInstance()->Hook_Run($sHookName,$aParams);
|
||||
if (array_key_exists('template_result',$aResultHook)) {
|
||||
return join('',$aResultHook['template_result']);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue