mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 23:03:25 +09:00
Normalize whitespace in RSS module
This commit is contained in:
parent
87f798f94f
commit
a30b7b6259
6 changed files with 78 additions and 78 deletions
|
|
@ -10,7 +10,7 @@ class rssController extends rss
|
|||
function init()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set RSS URL
|
||||
*/
|
||||
|
|
@ -21,31 +21,31 @@ class rssController extends rss
|
|||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
$oRssModel = getModel('rss');
|
||||
$config = $oRssModel->getConfig();
|
||||
$module_config = $oRssModel->getRssModuleConfig($current_module_srl);
|
||||
|
||||
|
||||
if($config->use_total_feed != 'N' && Context::get('site_module_info')->mid == Context::get('mid'))
|
||||
{
|
||||
Context::set('general_rss_url', $oRssModel->getRssURL('rss'));
|
||||
Context::set('general_atom_url', $oRssModel->getRssURL('atom'));
|
||||
}
|
||||
|
||||
|
||||
if($module_config->open_rss != 'N')
|
||||
{
|
||||
Context::set('rss_url', $oRssModel->getRssURL('rss', Context::get('mid')));
|
||||
Context::set('atom_url', $oRssModel->getRssURL('atom', Context::get('mid')));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Copy RSS configuration
|
||||
*/
|
||||
function triggerCopyModule(&$obj)
|
||||
{
|
||||
$module_config = getModel('rss')->getRssModuleConfig($obj->originModuleSrl);
|
||||
|
||||
|
||||
foreach($obj->moduleSrlList as $module_srl)
|
||||
{
|
||||
getController('module')->insertModulePartConfig('rss', $module_srl, $module_config);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue