From f7a644a338fbaa48faa3b0284849dd784689c74d Mon Sep 17 00:00:00 2001 From: s-nakajima Date: Wed, 9 Aug 2017 22:11:34 +0900 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E7=9D=80=E3=81=AERSS=E5=87=BA?= =?UTF-8?q?=E5=8A=9B=E3=81=A7=E3=80=81=E3=82=BF=E3=82=A4=E3=83=88=E3=83=AB?= =?UTF-8?q?=E7=AD=89=E3=81=8C=E7=A9=BA=E3=81=A7=E5=87=BA=E5=8A=9B=E3=81=95?= =?UTF-8?q?=E3=82=8C=E3=82=8B=20https://github.com/NetCommons3/NetCommons3?= =?UTF-8?q?/issues/997?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- View/Topics/xml/index.ctp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/View/Topics/xml/index.ctp b/View/Topics/xml/index.ctp index a5df3c5..518b09b 100644 --- a/View/Topics/xml/index.ctp +++ b/View/Topics/xml/index.ctp @@ -25,22 +25,22 @@ $channelData = array( $content = ''; foreach ($camelizeData as $item) { // フィードの本文が正しくなるよう HTML の削除とエスケープ - $bodyText = $this->Text->truncate($item['topic']['displaySummary'], 400, array( + $bodyText = $this->Text->truncate($item['Topic']['display_summary'], 400, array( 'ending' => '...', 'exact' => true, 'html' => true, )); $contentData = array( - 'title' => h($item['topic']['displayTitle']), - 'link' => $item['topic']['path'], - 'guid' => array('url' => $item['topic']['path'], 'isPermaLink' => 'true'), + 'title' => h($item['Topic']['display_title']), + 'link' => $item['Topic']['path'], + 'guid' => array('url' => $item['Topic']['path'], 'isPermaLink' => 'true'), 'description' => $bodyText, - 'pubDate' => $item['topic']['publishStart'], - 'content::encoded' => array('value' => $item['topic']['summary']), + 'pubDate' => $item['Topic']['publish_start'], + 'content::encoded' => array('value' => $item['Topic']['summary']), ); - if ($item['category']['name']) { - $contentData['category'] = h($item['category']['displayName']); + if (!empty($item['Category']['name'])) { + $contentData['category'] = h($item['Category']['display_name']); } $content .= $this->Rss->item(array(), $contentData);