Changeset 1131 for trunk/include/category_subcats.inc.php
- Timestamp:
- Apr 6, 2006, 4:23:54 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/category_subcats.inc.php
r1130 r1131 29 29 * This file is included by the main page to show thumbnails for a category 30 30 * that have only subcategories 31 * 31 * 32 32 */ 33 33 … … 91 91 } 92 92 93 $comment = null; 94 if ( isset($row['comment']) ) 95 { 96 $comment = strip_tags( $row['comment'] ); 97 } 98 93 99 if (isset($image_id)) 94 100 { … … 100 106 'name' => $row['name'], 101 107 'date_last' => @$row['date_last'], 102 'comment' => @$row['comment'],108 'comment' => $comment, 103 109 'nb_images' => $row['nb_images'], 104 110 ) … … 112 118 { 113 119 $images = array(); 114 120 115 121 foreach ($cat_thumbnails as $item) 116 122 { … … 130 136 131 137 $template->assign_block_vars('categories', array()); 132 138 133 139 foreach ($cat_thumbnails as $item) 134 140 { … … 140 146 'TITLE' => $lang['hint_category'], 141 147 'ICON' => get_icon(@$item['date_last']), 142 148 143 149 'URL' => make_index_url( 144 150 array( 145 151 'category' => $item['category'], 152 'cat_name' => $item['name'], 146 153 ) 147 154 ),
Note: See TracChangeset
for help on using the changeset viewer.