From 3db40bffedda315576a890fcbaf176ae6c6ce5b7 Mon Sep 17 00:00:00 2001 From: misol Date: Wed, 14 Jan 2009 13:31:56 +0000 Subject: [PATCH] =?UTF-8?q?RSS=20Spec=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5361 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/rss/rss.view.php | 3 +++ modules/rss/tpl/rss10.html | 5 ++--- modules/rss/tpl/rss20.html | 6 ++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/rss/rss.view.php b/modules/rss/rss.view.php index 7ae907d27..bed3dd4f9 100644 --- a/modules/rss/rss.view.php +++ b/modules/rss/rss.view.php @@ -97,6 +97,9 @@ if($mid) { $info->id = getUrl('','mid',$mid,'act','rss','format','atom','page',Context::get('page'),'start_date',Context::get('start_date'),'end_date',Context::get('end_date')); } else { $info->id = getUrl('','module','rss','act','rss','format','atom','page',Context::get('page'),'start_date',Context::get('start_date'),'end_date',Context::get('end_date')); } break; + case 'rss1.0': + $info->date = date('Y-m-d\TH:i:sO'); + break; default: $info->date = date("D, d M Y H:i:s").' '.$GLOBALS['_time_zone']; break; diff --git a/modules/rss/tpl/rss10.html b/modules/rss/tpl/rss10.html index 6dc12c267..6aaac2ea5 100644 --- a/modules/rss/tpl/rss10.html +++ b/modules/rss/tpl/rss10.html @@ -1,6 +1,6 @@ {''} - + {$info->title} {$info->link} @@ -14,14 +14,13 @@ {$info->date} {$info->language} - {$info->total_count} {str_replace('\'', ''',$oDocument->getTitle())} {$oDocument->getPermanentUrl()} {str_replace('\'', ''', htmlspecialchars($oDocument->getContentText(200)))} - {$oDocument->getRegdateGM()} + {$oDocument->getRegdate('Y-m-d\TH:i:sO')} diff --git a/modules/rss/tpl/rss20.html b/modules/rss/tpl/rss20.html index 28d36dc57..eafd9bafd 100644 --- a/modules/rss/tpl/rss20.html +++ b/modules/rss/tpl/rss20.html @@ -23,13 +23,11 @@ {str_replace('\'', ''', htmlspecialchars($oDocument->getContentText(100)))} {$oDocument->getRegdateGM()} - {@$i=0;} {str_replace('\'', ''', htmlspecialchars($tag))} - {@$i++;} - - {$i} + + {$oDocument->getCommentcount()}