Changeset 721
- Timestamp:
- Jan 23, 2005, 4:27:20 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/comments.php
r688 r721 112 112 113 113 $query = ' 114 SELECT DISTINCT(ic.image_id) AS image_id, (ic.category_id) AS category_id114 SELECT DISTINCT(ic.image_id) AS image_id,ic.category_id, uppercats 115 115 FROM '.COMMENTS_TABLE.' AS c, '.IMAGE_CATEGORY_TABLE.' AS ic 116 , '.CATEGORIES_TABLE.' AS cat 116 117 WHERE c.image_id = ic.image_id 118 AND ic.category_id = cat.id 117 119 AND date >= \''.$maxdate.'\''; 118 120 if ($user['status'] != 'admin') … … 128 130 } 129 131 $query.= ' 132 GROUP BY ic.image_id 130 133 ORDER BY ic.image_id DESC 131 134 ;'; … … 149 152 $subrow = mysql_fetch_array($subresult); 150 153 151 if (!isset($array_cat_names[$subrow['cat_id']]))152 {153 $cat_result = get_cat_info($subrow['cat_id']);154 $array_cat_names[$subrow['cat_id']] =155 get_cat_display_name($cat_result['name'], '');156 }157 158 154 // name of the picture 159 $name = $array_cat_names[$category_id].' > '; 155 $name = get_cat_display_name_cache($row['uppercats'], '', false); 156 $name.= $conf['level_separator']; 160 157 if (!empty($subrow['name'])) 161 158 { … … 166 163 $name.= str_replace('_',' ',get_filename_wo_extension($subrow['file'])); 167 164 } 168 $name.= ' [ '.$subrow['file'].' ]'; 165 169 166 // source of the thumbnail picture 170 167 $thumbnail_src = get_thumbnail_src($subrow['path'], @$subrow['tn_ext']);
Note: See TracChangeset
for help on using the changeset viewer.