관리자 페이지에서 RSS 바로 확인 할 수 있도록 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6956 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
misol 2009-11-21 18:39:54 +00:00
parent c5bd982447
commit 624e734eea
4 changed files with 27 additions and 17 deletions

View file

@ -9,6 +9,25 @@
**/
class rssModel extends rss {
/**
* @brief Feed url 생성.
**/
function getModuleFeedUrl($vid = null, $mid, $format) {
if(Context::isAllowRewrite()) {
$request_uri = Context::getRequestUri();
// 가상 사이트 변수가 있고 이 변수가 mid와 다를때. (vid와 mid는 같을 수 없다고 함)
if($vid && $vid != $mid) {
return $request_uri.$vid.'/'.$mid.'/'.$format;
}
else {
return $request_uri.$mid.'/'.$format;
}
}
else {
return getUrl('','mid',$mid,'act',$format);
}
}
/**
* @brief 특정 모듈의 rss 설정을 return