Changeset 602 for trunk/picture.php
- Timestamp:
- Nov 13, 2004, 2:43:53 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/picture.php
r598 r602 754 754 $result = pwg_query($query); 755 755 $categories = ''; 756 $page['show_comments'] = false; 756 757 while ($row = mysql_fetch_array($result)) 757 758 { … … 762 763 $cat_info = get_cat_info($row['category_id']); 763 764 $categories .= get_cat_display_name($cat_info['name'], ' >'); 765 // the picture is commentable if it belongs at least to one category which 766 // is commentable 767 if ($cat_info['commentable']) 768 { 769 $page['show_comments'] = true; 770 } 764 771 } 765 772 $template->assign_block_vars( … … 921 928 922 929 //---------------------------------------------------- users's comments display 923 if ( $conf['show_comments'])930 if ($page['show_comments']) 924 931 { 925 932 // number of comment for this picture
Note: See TracChangeset
for help on using the changeset viewer.