Changeset 23015 for branches/version-2_13-dev/data/class/pages/products/LC_Page_Products_CategoryList.php
- Timestamp:
- 2013/07/31 00:17:49 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/class/pages/products/LC_Page_Products_CategoryList.php
r22947 r23015 61 61 function action() 62 62 { 63 $objFormParam = $this->lfInitParam($_REQUEST); 64 63 65 // カテゴリIDの正当性チェック 64 $this->lfCheckCategoryId(); 66 $category_id = $this->lfCheckCategoryId($objFormParam->getValue('category_id')); 67 if ($category_id == 0) { 68 SC_Utils_Ex::sfDispSiteError(CATEGORY_NOT_FOUND); 69 } 65 70 66 71 // カテゴリ情報を取得する。 67 $objFormParam = $this->lfInitParam($_REQUEST); 68 $arrCategoryData = $this->lfGetCategories($objFormParam->getValue('category_id'), true); 72 $arrCategoryData = $this->lfGetCategories($category_id, true); 69 73 $this->arrCategory = $arrCategoryData['arrCategory']; 70 74 $this->arrChildren = $arrCategoryData['arrChildren']; … … 92 96 function lfGetCategories($category_id, $count_check = false) 93 97 { 94 // カテゴリの正しいIDを取得する。95 $category_id = $this->lfCheckCategoryId($category_id);96 if ($category_id == 0) {97 SC_Utils_Ex::sfDispSiteError(CATEGORY_NOT_FOUND);98 }99 100 98 $arrCategory = null; // 選択されたカテゴリ 101 99 $arrChildren = array(); // 子カテゴリ
Note: See TracChangeset
for help on using the changeset viewer.