View Single Post
  #17  
Old 05-27-2008, 02:16 PM
 
sparker2 sparker2 is offline
 

eXpert
  
Join Date: Feb 2007
Posts: 290
 

Default Re: Image Path MOD for 4.1.x

Here is the code I put in and it is not working.

/*
if (!is_url($file_path) || $config_data['save_url'] == 'Y') {
$dest_file = func_image_dir($type);
if (!zerolen($prepared['filename'])) {
$dest_file .= "/".$prepared['filename'];
}
$prepared['image_path'] = func_store_image_fs($image_data, $type);
if (zerolen($prepared['image_path']))
return false;
$prepared['filename'] = basename($prepared['image_path']);
$path = func_relative_path($prepared['image_path'], $xcart_dir);
if ($path !== false) {
$prepared['image_path'] = $path;
}
} else {
*/
$prepared['image_path'] = $file_path;
}
}
else {
__________________
Shareen
sparker2@cox.net
http://www.stitches4u.com
X-Cart Version 4.5.0 with Smart Template vs 4.4.x
Reply With Quote