aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2009-03-05 21:08:04 +0000
committerpatdenice <patdenice@piwigo.org>2009-03-05 21:08:04 +0000
commit254aee26953b4e862b73467968f92138a6283da1 (patch)
treef2a78dbce4e54be16dd1698b67bb4a5df2d9c0d1 /index.php
parentd3e6eabb053f311d5d8fd4ec80cfb0c1b32cf141 (diff)
Create navigation_bar.tpl file.
Move create_navigation_bar function from functions_html.inc.php to functions.inc.php. git-svn-id: http://piwigo.org/svn/trunk@3172 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--index.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/index.php b/index.php
index ac1835544..944b33a4d 100644
--- a/index.php
+++ b/index.php
@@ -64,6 +64,7 @@ if (isset($page['category']))
check_restrictions($page['category']['id']);
}
+$page['navigation_bar'] = array();
if (count($page['items']) > $user['nb_image_page'])
{
$page['navigation_bar'] = create_navigation_bar(
@@ -74,10 +75,6 @@ if (count($page['items']) > $user['nb_image_page'])
true
);
}
-else
-{
- $page['navigation_bar'] = '';
-}
// caddie filling :-)
if (isset($_GET['caddie']))
@@ -219,7 +216,7 @@ if ( $page['section']=='search' and $page['start']==0 and
}
// navigation bar
-$template->assign( 'NAV_BAR', $page['navigation_bar'] );
+$template->assign( 'navbar', $page['navigation_bar'] );
if ( count($page['items']) > 0
and $page['section'] != 'most_visited'