Ignore:
Timestamp:
2010/02/18 16:33:42 (16 years ago)
Author:
shutta
Message:

コミュニティ版の r18397 をマージ。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_4-dev/data/class/pages/LC_Page_Sitemap.php

    r16582 r18573  
    255255        $result = $conn->getAll($sql); 
    256256 
    257         $mobile = ""; 
    258257        if ($isMobile) { 
    259             $mobile = "mobile/"; 
     258            $detail_p_html = MOBILE_DETAIL_P_HTML; 
     259        } else { 
     260            $detail_p_html = DETAIL_P_HTML; 
    260261        } 
    261262 
    262263        $arrRet = array(); 
    263         for ($i = 0; $i < count($result); $i++) { 
    264             $page = array("url" => SITE_URL. sprintf("%sproducts/detail.php?product_id=%d", $mobile, $result[$i]['product_id']), 
    265                           "update_date" => $result[$i]['update_date']); 
    266             $arrRet[$i] = $page; 
     264        foreach ($result as $row) { 
     265            $page["update_date"] = $row['update_date']; 
     266            $page["url"] = SITE_URL . substr($detail_p_html, strlen(URL_DIR)) . $row['product_id']; 
     267 
     268            $arrRet[] = $page; 
    267269        } 
    268270        return $arrRet; 
Note: See TracChangeset for help on using the changeset viewer.