WordPress.org

Plugin Directory

Changeset 338055


Ignore:
Timestamp:
01/28/11 03:18:16 (3 years ago)
Author:
JustinSainton
Message:

Image back in backend.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-e-commerce/branches/3.8-development/wpsc-admin/includes/save-data.functions.php

    r338054 r338055  
    8686   global $wpdb; 
    8787 
    88 //   $image = $wpdb->get_var() 
    89  
    90    if( !empty( $image ) ) 
    91       $image = "<img src=\"".WPSC_CATEGORY_URL.stripslashes($cat['image'])."\" title='".$cat['name']."' alt='".$cat['name']."' width='30' height='30' />"; 
     88  $image = wpsc_get_categorymeta( $term_id, 'image' ); 
     89  $name = get_term_by( 'id', $term_id, 'wpsc_product_category' ); 
     90  $name = $name->name; 
     91 
     92  if( !empty( $image ) ) 
     93      $image = "<img src=\"".WPSC_CATEGORY_URL.stripslashes( $image )."\" title='".$name."' alt='".$name."' width='30' height='30' />"; 
    9294   else 
    93       $image = "<img src='".WPSC_CORE_IMAGES_URL."/no-image-uploaded.gif' title='".$cat['name']."' alt='".$cat['name']."' width='30' height='30' />"; 
     95      $image = "<img src='".WPSC_CORE_IMAGES_URL."/no-image-uploaded.gif' title='".$name."' alt='".$name."' width='30' height='30' />"; 
    9496    
    9597 
Note: See TracChangeset for help on using the changeset viewer.