- Timestamp:
- 2011/08/04 02:38:15 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_11-dev/data/class/pages/rss/LC_Page_Rss.php
r20764 r21121 116 116 // RSS用に変換 117 117 foreach (array_keys($arrNews) as $key) { 118 $netUrlHttpUrl = new Net_URL(HTTP_URL); 119 118 120 $row =& $arrNews[$key]; 119 121 // 日付 120 122 $row['news_date'] = date('r', strtotime($row['news_date'])); 123 // 新着情報URL 124 if (SC_Utils_Ex::isBlank($row['news_url'])) { 125 $row['news_url'] = HTTP_URL; 126 } 127 elseif ($row['news_url'][0] == '/') { 128 // 変換(絶対パス→URL) 129 $netUrl = new Net_URL($row['news_url']); 130 $netUrl->protocol = $netUrlHttpUrl->protocol; 131 $netUrl->user = $netUrlHttpUrl->user; 132 $netUrl->pass = $netUrlHttpUrl->pass; 133 $netUrl->host = $netUrlHttpUrl->host; 134 $netUrl->port = $netUrlHttpUrl->port; 135 $row['news_url'] = $netUrl->getUrl(); 136 } 121 137 } 122 138
Note: See TracChangeset
for help on using the changeset viewer.