From dd38c1463991eb623e2d810525bd4d341cba1ef1 Mon Sep 17 00:00:00 2001 From: z0rglub Date: Sat, 4 Sep 2004 08:07:33 +0000 Subject: - bug correction : when coming from picture.php on a picture of category.php page superior to the first, the right page was displayed (the one including the element) but the navigation bar was always saying we were on the first page - distinguish CSS classes span.dateSelected and span.pageNumberSelected git-svn-id: http://piwigo.org/svn/trunk@514 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/category_calendar.inc.php | 4 ++-- include/config.inc.php | 2 +- include/functions_html.inc.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/category_calendar.inc.php b/include/category_calendar.inc.php index 2d559ace7..f41f5bb97 100644 --- a/include/category_calendar.inc.php +++ b/include/category_calendar.inc.php @@ -61,7 +61,7 @@ foreach ($calendar_years as $calendar_year => $nb_picture_year) if (isset($page['calendar_year']) and $calendar_year == $page['calendar_year']) { - $years_nav_bar.= ' '.$calendar_year.''; + $years_nav_bar.= ' '.$calendar_year.''; } else { @@ -114,7 +114,7 @@ SELECT DISTINCT(MONTH('.$conf['calendar_datefield'].')) AS month if (isset($page['calendar_month']) and $calendar_month == $page['calendar_month']) { - $months_nav_bar.= ' '; + $months_nav_bar.= ' '; $months_nav_bar.= $lang['month'][(int)$calendar_month]; $months_nav_bar.= ''; } diff --git a/include/config.inc.php b/include/config.inc.php index f33e53ba3..ec0930608 100644 --- a/include/config.inc.php +++ b/include/config.inc.php @@ -89,6 +89,6 @@ $conf['show_exif_fields'] = array('Make', // for PHP version newer than 4.1.2 : // $conf['show_exif_fields'] = array('CameraMake','CameraModel','DateTime'); -$conf['calendar_datefield'] = 'date_creation'; +$conf['calendar_datefield'] = 'date_available'; $conf['rate'] = true; ?> diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php index 5d91aa7aa..4b456ca7b 100644 --- a/include/functions_html.inc.php +++ b/include/functions_html.inc.php @@ -86,7 +86,7 @@ function create_navigation_bar( $url, $nb_element, $start, $temp_start = ( $i - 1 ) * $nb_element_page; if ( $temp_start == $start ) { - $navigation_bar.= ' '.$i.' '; + $navigation_bar.= ' '.$i.' '; } else { -- cgit v1.2.3