correct helper picbook
This commit is contained in:
@@ -5,6 +5,16 @@
|
||||
|
||||
function picbook($item, $width, $height) {
|
||||
|
||||
return IMGSRV.'price/'.$width.'x'.$height.'/'.$item['price_id'].'.'.$item['priceimg'];
|
||||
$id = $item['price_id'];
|
||||
$img = $item['priceimg'];
|
||||
|
||||
if (in_array($img, array('jpg', 'jpeg', 'gif', 'png', 'JPG'))){
|
||||
$fileimg = $id . '.' . $img;
|
||||
}
|
||||
else
|
||||
$fileimg = $img;
|
||||
|
||||
|
||||
return IMGSRV.'price/'.$width.'x'.$height.'/'.$fileimg;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user