diff options
author | rvelices <rv-github@modusoptimus.com> | 2006-02-17 02:41:57 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2006-02-17 02:41:57 +0000 |
commit | 08b63815640b2fc8059c243a4f9feaf865801a25 (patch) | |
tree | 9d85b271d0857dd898d61883258d11986071c367 /picture.php | |
parent | f27bd8558af02ec510137a196b874c87925e14bb (diff) |
fix: remote site decodes html entities from xml and addslashes
fix: picture displays "image rank/total" images even for non numeric categories
fix: category comment not transformed with nl2br if allow_html_descriptions and
comment already looks like html
git-svn-id: http://piwigo.org/svn/trunk@1046 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'picture.php')
-rw-r--r-- | picture.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/picture.php b/picture.php index 23716e4c5..e1ed3891c 100644 --- a/picture.php +++ b/picture.php @@ -529,17 +529,15 @@ if ( isset( $_GET['slideshow'] ) and isset($page['next_item']) ) } $title_img = $picture['current']['name']; -$title_nb = ''; if (is_numeric( $page['cat'] )) { $title_img = replace_space(get_cat_display_name($page['cat_name'])); - $n = $page['current_rank'] + 1; - $title_nb = $n.'/'.$page['cat_nb_images']; } else if ( $page['cat'] == 'search' ) { $title_img = replace_search( $title_img, $_GET['search'] ); } +$title_nb = ($page['current_rank'] + 1).'/'.$page['cat_nb_images']; // calculation of width and height if (empty($picture['current']['width'])) |