aboutsummaryrefslogtreecommitdiffstats
path: root/include/calendar_base.class.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2013-06-27 20:45:32 +0000
committerrvelices <rv-github@modusoptimus.com>2013-06-27 20:45:32 +0000
commit56b3516baeefc245d994390e4c134db9d4aeab72 (patch)
tree2c5125d3e9162885f526a73b69699dc9260d7e5b /include/calendar_base.class.php
parentc41ff2e14e8a15e46eb078a205ff67ff241c619f (diff)
fix missing prev/next nav items in the calendar view (Smarty get_template_vars by reference not working anymore)
git-svn-id: http://piwigo.org/svn/trunk@23618 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/calendar_base.class.php')
-rw-r--r--include/calendar_base.class.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/calendar_base.class.php b/include/calendar_base.class.php
index 8f9d1c252..b61dc41c8 100644
--- a/include/calendar_base.class.php
+++ b/include/calendar_base.class.php
@@ -294,7 +294,7 @@ GROUP BY period';
$upper_items_rank = array_flip($upper_items);
if ( !isset($upper_items_rank[$current]) )
{
- array_push($upper_items, $current);// just in case (external link)
+ $upper_items[] = $current;// just in case (external link)
usort($upper_items, 'version_compare');
$upper_items_rank = array_flip($upper_items);
}
@@ -330,11 +330,11 @@ GROUP BY period';
if ( !empty($tpl_var) )
{
- $existing = & $template->get_template_vars('chronology_navigation_bars');
- if ( !empty($existing) )
+ $existing = $template->smarty->getVariable('chronology_navigation_bars');
+ if (! ($existing instanceof Undefined_Smarty_Variable))
{
- $existing[ sizeof($existing)-1 ] =
- array_merge( $existing[ sizeof($existing)-1 ], $tpl_var);
+ $existing->value[ sizeof($existing->value)-1 ] =
+ array_merge( $existing->value[ sizeof($existing->value)-1 ], $tpl_var);
}
else
{