Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as PHP by - ( 15 years ago )
function get_product_image_src($entry, $name, $lang) {
$filename = get_filename($entry, $lang, FALSE);
$cfilename = file_directory_path() . '/' . get_product_file_path($lang) . '/' . $filename;
if (!file_exists($cfilename)) {
$filename = 'sites/default/files/kein-bild.png';
} else {
$filename = 'sites/default/files/' . get_product_file_path($lang) .'/' . $filename;
}
return '/' . $filename;
}
Revise this Paste