Fix general RSS feed

This commit is contained in:
Kijin Sung 2016-04-10 22:38:42 +09:00
parent d772a8df85
commit 82a9eea675

View file

@ -34,7 +34,7 @@ class rssView extends rss
{
$site_module_info = Context::get('site_module_info');
$site_srl = $site_module_info->site_srl;
$mid = Context::get('mid'); // The target module id, if absent, then all
$mid = isset($_REQUEST['mid']) ? Context::get('mid') : null;
$start_date = (int)Context::get('start_date');
$end_date = (int)Context::get('end_date');
@ -42,6 +42,7 @@ class rssView extends rss
$rss_config = array();
$total_config = '';
$total_config = $oModuleModel->getModuleConfig('rss');
// If one is specified, extract only for this mid
if($mid)
{
@ -52,8 +53,8 @@ class rssView extends rss
$module_srls[] = $module_srl;
$open_rss_config[$module_srl] = $config->open_rss;
}
// If mid is not selected, then get all
}
// If mid is not selected, then get all
else
{
if($total_config->use_total_feed != 'N')
@ -73,7 +74,10 @@ class rssView extends rss
}
}
if(!count($module_srls) && !$add_description) return $this->dispError();
if (!count($module_srls) && !$add_description)
{
return $this->dispError();
}
$info = new stdClass;
$args = new stdClass;