Opened 8 years ago

Last modified 6 years ago

#1303 closed Frage

Prodgramcode Reste in der Klasse products.php — at Initial Version

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

Beginnend bei Zeile 524 ff.

/*get products image, imageinfo array*/

$products_image = $this->productImage($arrayproducts_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($arrayproducts_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 (0)

Note: See TracTickets for help on using tickets.