mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
관리자 페이지에서 RSS 바로 확인 할 수 있도록 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6956 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c5bd982447
commit
624e734eea
4 changed files with 27 additions and 17 deletions
|
|
@ -37,22 +37,8 @@
|
|||
$rss_config = $oRssModel->getRssModuleConfig($current_module_srl);
|
||||
|
||||
if($rss_config->open_rss != 'N') {
|
||||
if(Context::isAllowRewrite()) {
|
||||
$request_uri = Context::getRequestUri();
|
||||
// 가상 사이트 변수가 있고 이 변수가 mid와 다를때. (vid와 mid는 같을 수 없다고 함)
|
||||
if(Context::get('vid') && Context::get('vid') != Context::get('mid')) {
|
||||
Context::set('rss_url', Context::getRequestUri().Context::get('vid').'/'.Context::get('mid').'/rss');
|
||||
Context::set('atom_url', Context::getRequestUri().Context::get('vid').'/'.Context::get('mid').'/atom');
|
||||
}
|
||||
else {
|
||||
Context::set('rss_url', $request_uri.Context::get('mid').'/rss');
|
||||
Context::set('atom_url', $request_uri.Context::get('mid').'/atom');
|
||||
}
|
||||
}
|
||||
else {
|
||||
Context::set('rss_url', getUrl('','mid',Context::get('mid'),'act','rss'));
|
||||
Context::set('atom_url', getUrl('','mid',Context::get('mid'),'act','atom'));
|
||||
}
|
||||
Context::set('rss_url', $oRssModel->getModuleFeedUrl(Context::get('vid'), Context::get('mid'), 'rss'));
|
||||
Context::set('atom_url', $oRssModel->getModuleFeedUrl(Context::get('vid'), Context::get('mid'), 'atom'));
|
||||
}
|
||||
|
||||
if(Context::isInstalled() && $site_module_info->mid == Context::get('mid') && $total_config->use_total_feed != 'N') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue