Opened 8 years ago
Last modified 6 years ago
#1303 closed Frage
Programmcode Reste in der Klasse products.php — at Version 1
| Reported by: | Archetim | Owned by: | somebody |
|---|---|---|---|
| Priority: | normal | Milestone: | modified-shop-2.0.5.0 |
| Component: | Shop | Version: | 2.0.3.0 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description (last modified by )
Beginnend bei Zeile 524 ff.
//get products image, imageinfo array
$products_image = $this->productImage($array['products_image'], $image);
$p_img = substr($products_image, strlen(DIR_WS_BASE));
$img_attr = '';
if (file_exists($p_img)) {
list($width, $height, $type, $img_attr) = getimagesize($p_img);
}
Das Array $img_attr wird im Array $productDataAdds als
'PRODUCTS_IMAGE_SIZE' => $img_attr,
bereitgestellt.
Ich konnte aber weder im xtc5, tpl_modified noch im resonsive Template eine Stelle finden, an der diese Daten verwendet würden.
Ist das nun ein Rest von früher oder ist noch eine Verwendung dafür geplant. Wenn nicht könnte man dies ja auskommentieren.
//get products image, imageinfo array
$products_image = $this->productImage($array['products_image'], $image);
/*
$p_img = substr($products_image, strlen(DIR_WS_BASE));
$img_attr = '';
if (file_exists($p_img)) {
list($width, $height, $type, $img_attr) = getimagesize($p_img);
}
*/
Man spart sich ja zumindest Zugriffe auf die Platte ( und damit Ausführungszeit ) ,die Funktion "buildDataArray" wird ja recht oft verwendet.
Change History (1)
comment:1 by , 8 years ago
| Description: | modified (diff) |
|---|---|
| Summary: | Prodgramcode Reste in der Klasse products.php → Programmcode Reste in der Klasse products.php |
Note:
See TracTickets
for help on using tickets.
