mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-25 19:00:03 +03:00
fixes #1730 replace Smarty getVariable by getTemplateVars
This commit is contained in:
parent
e270e1b957
commit
79d56beb8a
1 changed files with 4 additions and 4 deletions
|
@ -352,11 +352,11 @@ GROUP BY period';
|
|||
|
||||
if ( !empty($tpl_var) )
|
||||
{
|
||||
$existing = $template->smarty->getVariable('chronology_navigation_bars');
|
||||
if (! ($existing instanceof Smarty_Undefined_Variable))
|
||||
$existing = $template->smarty->getTemplateVars('chronology_navigation_bars');
|
||||
if (!empty($existing))
|
||||
{
|
||||
$existing->value[ sizeof($existing->value)-1 ] =
|
||||
array_merge( $existing->value[ sizeof($existing->value)-1 ], $tpl_var);
|
||||
$existing[ sizeof($existing)-1 ] = array_merge( $existing[ sizeof($existing)-1 ], $tpl_var);
|
||||
$template->assign('chronology_navigation_bars', $existing);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue