Changeset 577 for trunk/admin/infos_images.php
- Timestamp:
- Oct 23, 2004, 2:38:34 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/infos_images.php
r570 r577 249 249 $current_category = get_cat_info($_GET['cat_id']); 250 250 $url = PHPWG_ROOT_PATH.'admin.php?page=infos_images&cat_id='; 251 $category_path = get_cat_display_name($current_category['name'], '->', $url); 251 $category_path = get_cat_display_name($current_category['name'], 252 '->', 253 $url); 252 254 253 $form_action = PHPWG_ROOT_PATH.'admin.php?page=infos_images&cat_id='.$_GET['cat_id']; 255 $form_action = PHPWG_ROOT_PATH.'admin.php'; 256 $form_action.= '?page=infos_images&cat_id='.$_GET['cat_id']; 254 257 if($page['start']) 255 258 { … … 322 325 get_complete_dir($row['storage_category_id']); 323 326 } 324 $thumbnail_url = $array_cat_directories[$row['storage_category_id']]; 325 $thumbnail_url.= 'thumbnail/'; 326 $thumbnail_url.= $conf['prefix_thumbnail']; 327 $thumbnail_url.= get_filename_wo_extension($row['file']); 328 $thumbnail_url.= '.'.$row['tn_ext']; 327 328 // thumbnail url 329 if (isset($row['tn_ext']) and $row['tn_ext'] != '') 330 { 331 $thumbnail_url = $array_cat_directories[$row['storage_category_id']]; 332 $thumbnail_url.= 'thumbnail/'.$conf['prefix_thumbnail']; 333 $thumbnail_url.= get_filename_wo_extension($row['file']); 334 $thumbnail_url.= '.'.$row['tn_ext']; 335 } 336 else 337 { 338 $thumbnail_url = PHPWG_ROOT_PATH; 339 $thumbnail_url = 'template/'.$user['template'].'/mimetypes/'; 340 $thumbnail_url.= strtolower(get_extension($row['file'])).'.png'; 341 } 329 342 330 343 // some fields are nullable in the images table
Note: See TracChangeset
for help on using the changeset viewer.