mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-05 01:52:17 +09:00
Fix general RSS feed
This commit is contained in:
parent
d772a8df85
commit
82a9eea675
1 changed files with 7 additions and 3 deletions
|
|
@ -34,7 +34,7 @@ class rssView extends rss
|
||||||
{
|
{
|
||||||
$site_module_info = Context::get('site_module_info');
|
$site_module_info = Context::get('site_module_info');
|
||||||
$site_srl = $site_module_info->site_srl;
|
$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');
|
$start_date = (int)Context::get('start_date');
|
||||||
$end_date = (int)Context::get('end_date');
|
$end_date = (int)Context::get('end_date');
|
||||||
|
|
||||||
|
|
@ -42,6 +42,7 @@ class rssView extends rss
|
||||||
$rss_config = array();
|
$rss_config = array();
|
||||||
$total_config = '';
|
$total_config = '';
|
||||||
$total_config = $oModuleModel->getModuleConfig('rss');
|
$total_config = $oModuleModel->getModuleConfig('rss');
|
||||||
|
|
||||||
// If one is specified, extract only for this mid
|
// If one is specified, extract only for this mid
|
||||||
if($mid)
|
if($mid)
|
||||||
{
|
{
|
||||||
|
|
@ -52,8 +53,8 @@ class rssView extends rss
|
||||||
$module_srls[] = $module_srl;
|
$module_srls[] = $module_srl;
|
||||||
$open_rss_config[$module_srl] = $config->open_rss;
|
$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
|
else
|
||||||
{
|
{
|
||||||
if($total_config->use_total_feed != 'N')
|
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;
|
$info = new stdClass;
|
||||||
$args = new stdClass;
|
$args = new stdClass;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue