mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 00:02:21 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@262 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
31bfa47594
commit
3e23bb535f
4 changed files with 51 additions and 22 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue