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 {
|