WordPress.org

Plugin Directory

Changeset 338054


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

Sillyness.

File:
1 edited

Legend:

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

    r338046 r338054  
    8383 */ 
    8484 
    85 function wpsc_custom_category_column_data( $string, $column_name, $tag ) { 
    86    global $current_screen; 
    87  
    88    if(isset($cat['image'])){ 
     85function wpsc_custom_category_column_data( $string, $column_name, $term_id ) { 
     86   global $wpdb; 
     87 
     88//   $image = $wpdb->get_var() 
     89 
     90   if( !empty( $image ) ) 
    8991      $image = "<img src=\"".WPSC_CATEGORY_URL.stripslashes($cat['image'])."\" title='".$cat['name']."' alt='".$cat['name']."' width='30' height='30' />"; 
    90     }else{ 
     92   else 
    9193      $image = "<img src='".WPSC_CORE_IMAGES_URL."/no-image-uploaded.gif' title='".$cat['name']."' alt='".$cat['name']."' width='30' height='30' />"; 
    92     } 
     94    
    9395 
    9496    return $image; 
     
    599601    if( !empty( $_POST ) ) { 
    600602        /* Image Processing Code*/ 
    601         if( empty( $_FILES['image'] ) && preg_match( "/\.(gif|jp(e)*g|png){1}$/i", $_FILES['image']['name'] ) ) { 
     603        if( !empty( $_FILES['image'] ) && preg_match( "/\.(gif|jp(e)*g|png){1}$/i", $_FILES['image']['name'] ) ) { 
    602604            if( function_exists( "getimagesize" ) ) { 
    603605                if( ( (int) $_POST['width'] > 10 && (int) $_POST['width'] < 512 ) && ((int)$_POST['height'] > 10 && (int)$_POST['height'] < 512) ) { 
Note: See TracChangeset for help on using the changeset viewer.