aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflop25 <flop25@piwigo.org>2013-03-12 14:42:27 +0000
committerflop25 <flop25@piwigo.org>2013-03-12 14:42:27 +0000
commit07d09df97f153d55b636c727d75fdbb170566480 (patch)
tree2aff395dcf9234bbd91d8e9be8e6cf5ae7b1da26
parent6d0710445e9e082575e6e56c753077673ed026d9 (diff)
merge rev:21515 from trunk to 2.5
add the nb of pages as template var for navigation_bar.tpl, for extensions git-svn-id: http://piwigo.org/svn/branches/2.5@21517 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--include/functions.inc.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index bcbab6ad1..5b676f87c 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -1460,6 +1460,7 @@ function create_navigation_bar($url, $nb_element, $start, $nb_element_page, $cle
$navbar['pages'][$i] = $url.$start_str.(($i - 1) * $nb_element_page);
}
$navbar['pages'][$maximum] = $url_start.$last;
+ $navbar['NB_PAGE']=$nb_element;
}
return $navbar;
}