Changeset 15365 for branches


Ignore:
Timestamp:
2007/08/27 16:32:00 (17 years ago)
Author:
nanasess
Message:

リファクタリングに伴う修正

Location:
branches/feature-module-update/data/class/pages/products
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/pages/products/LC_Page_Products_Detail.php

    r15353 r15365  
    189189 
    190190        // サブタイトルを取得 
    191         $arrFirstCat = SC_Utils_Ex::sfGetFirstCat($arrRet[0]['category_id']); 
     191        $arrFirstCat = $objDb->sfGetFirstCat($arrRet[0]['category_id']); 
    192192        $this->tpl_subtitle = $arrFirstCat['name']; 
    193193 
  • branches/feature-module-update/data/class/pages/products/LC_Page_Products_DetailImage.php

    r15154 r15365  
    3939        $objView = new SC_SiteView(); 
    4040        $objCartSess = new SC_CartSession("", false); 
     41        $objDb = new SC_Helper_DB_Ex(); 
    4142 
    4243        // 管理ページからの確認の場合は、非公開の商品も表示する。 
    43         if($_GET['admin'] == 'on') { 
     44        if(isset($_GET['admim']) && $_GET['admin'] == 'on') { 
    4445            $where = "del_flg = 0"; 
    4546        } else { 
     
    4849 
    4950        // 値の正当性チェック 
    50         if(!SC_Utils_Ex::sfIsInt($_GET['product_id']) || !SC_Utils_Ex::sfIsRecord("dtb_products", "product_id", $_GET['product_id'], $where)) { 
     51        if(!SC_Utils_Ex::sfIsInt($_GET['product_id']) || !$objDb->sfIsRecord("dtb_products", "product_id", $_GET['product_id'], $where)) { 
    5152            SC_Utils_Ex::sfDispSiteError(PRODUCT_NOT_FOUND); 
    5253        } 
  • branches/feature-module-update/data/class/pages/products/LC_Page_Products_List.php

    r15354 r15365  
    7373 
    7474        // GETのカテゴリIDを元に正しいカテゴリIDを取得する。 
    75         $category_id = SC_Utils_Ex::sfGetCategoryId("", $_GET['category_id']); 
     75        $category_id = $objDb->sfGetCategoryId("", $_GET['category_id']); 
    7676 
    7777        if (!isset($_GET['mode'])) $_GET['mode'] = ""; 
     
    8686            $tpl_subtitle = "全商品"; 
    8787        } else { 
    88             $arrFirstCat = SC_Utils_Ex::sfGetFirstCat($category_id); 
     88            $arrFirstCat = $objDb->sfGetFirstCat($category_id); 
    8989            $tpl_subtitle = $arrFirstCat['name']; 
    9090        } 
Note: See TracChangeset for help on using the changeset viewer.