Changeset 18156


Ignore:
Timestamp:
2009/07/01 20:46:40 (11 years ago)
Author:
kajiwara
Message:

#499 商品詳細ページで、画像を登録していない場合エラーが表示される 不具合を修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_4/data/class/pages/products/LC_Page_Products_Detail.php

    r17988 r18156  
    273273        $this->arrRelateProducts = $this->lfGetRelateProducts($tmp_id); 
    274274 
    275         // 拡大画像のウィンドウサイズをセット 
    276         if (isset($this->arrFile["main_large_image"])) { 
    277             $image_path = IMAGE_SAVE_DIR . basename($this->arrFile["main_large_image"]["filepath"]); 
    278         } else { 
    279             $image_path = ""; 
    280         } 
    281  
    282         list($large_width, $large_height) = getimagesize($image_path); 
    283         $this->tpl_large_width = $large_width + 60; 
    284         $this->tpl_large_height = $large_height + 80; 
    285  
    286275        $this->lfConvertParam(); 
    287276 
     
    495484        //この商品を買った人はこんな商品も買っています 
    496485        $this->arrRelateProducts = $this->lfGetRelateProducts($tmp_id); 
    497  
    498         // 拡大画像のウィンドウサイズをセット 
    499         if (!empty($this->arrFile["main_large_image"])) { 
    500             list($large_width, $large_height) = getimagesize(IMAGE_SAVE_DIR . basename($this->arrFile["main_large_image"]["filepath"])); 
    501         } 
    502         $this->tpl_large_width = isset($large_width) ? $large_width + 60 : 0; 
    503         $this->tpl_large_height = isset($large_height) ? $large_height + 80 : 0; 
    504486 
    505487        $objView->assignobj($this); 
Note: See TracChangeset for help on using the changeset viewer.