git-svn-id: http://xe-core.googlecode.com/svn/trunk@262 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-03-06 01:30:29 +00:00
parent 31bfa47594
commit 3e23bb535f
4 changed files with 51 additions and 22 deletions

View file

@ -44,9 +44,10 @@
// RSS 출력 형식을 체크
$rss_type = $config->rss_type;
if(!$this->rss_types->{$rss_type}) $rss_type = $this->default_rss_type;
if(!$this->rss_types[$rss_type]) $rss_type = $this->default_rss_type;
if(count($content)) {
$idx = 0;
foreach($content as $key => $item) {
$year = substr($item->regdate,0,4);
$month = substr($item->regdate,4,2);
@ -60,13 +61,13 @@
$item->link = sprintf("%s?document_srl=%d", Context::getRequestUri(), $item->document_srl);
$item->description = $item->content;
$item->date = gmdate("D, d M Y H:i:s", $time);
$content[$key] = $item;
$output[$idx++] = $item;
}
}
// RSS 출력물에서 사용될 변수 세팅
Context::set('info', $info);
Context::set('content', $content);
Context::set('content', $output);
// 결과 출력을 XMLRPC로 강제 지정
Context::setResponseMethod("XMLRPC");