Modify

Opened 8 years ago

Closed 6 years ago

#1303 closed Frage (fixed)

Programmcode Reste in der Klasse products.php

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 Torsten Riemer)

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.

Attachments (0)

Change History (4)

comment:1 by Torsten Riemer, 8 years ago

Description: modified (diff)
Summary: Prodgramcode Reste in der Klasse products.phpProgrammcode Reste in der Klasse products.php

comment:2 by Torsten Riemer, 8 years ago

Milestone: modified-shop-2.0.4.0

comment:3 by Gerhard Waldemair, 6 years ago

Milestone: modified-shop-2.0.5.0

comment:4 by Gerhard Waldemair, 6 years ago

Resolution: fixed
Status: newclosed

In 11979:

fix #1303

Modify Ticket

Action
as closed The owner will remain somebody.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.