GX-Bug #49588 » Kachel_Galerie_deaktivierte_Bilder_Fix.patch
gxdev_3.1/src/templates/Honeygrid/smarty/function.product_images.php (revision ) | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
/* -------------------------------------------------------------- |
3 |
function.product_images.php 2016-05-16
|
|
3 |
function.product_images.php 2016-11-28
|
|
4 | 4 |
Gambio GmbH |
5 | 5 |
http://www.gambio.de |
6 | 6 |
Copyright (c) 2016 Gambio GmbH |
... | ... | |
44 | 44 |
FROM ' . TABLE_PRODUCTS_IMAGES . ' i |
45 | 45 |
LEFT JOIN gm_prd_img_alt a ON (i.image_id = a.image_id AND |
46 | 46 |
a.language_id = ' . (int)$_SESSION['languages_id'] . ') |
47 |
WHERE i.products_id = ' . (int)$params['product_id'] . ' |
|
47 |
WHERE |
|
48 |
i.products_id = ' . (int)$params['product_id'] . ' AND |
|
49 |
i.gm_show_image = 1 |
|
48 | 50 |
ORDER BY i.image_nr'; |
49 | 51 |
$images = getImages($query, $params['p_name'], $params['p_image']); |
50 | 52 |
$smarty->assign($params['out'], $images); |