mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Various fixes to remove warnings in PHP 8.0
This commit is contained in:
parent
9a0bf6d907
commit
49923844b2
36 changed files with 271 additions and 176 deletions
|
|
@ -16,7 +16,8 @@ class rssController extends rss
|
|||
*/
|
||||
function triggerRssUrlInsert($obj)
|
||||
{
|
||||
if(!$current_module_srl = Context::get('current_module_info')->module_srl)
|
||||
$current_module_srl = Context::get('current_module_info')->module_srl ?? null;
|
||||
if (!$current_module_srl)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,9 +15,12 @@ class rssModel extends rss
|
|||
function getConfig()
|
||||
{
|
||||
$config = getModel('module')->getModuleConfig('rss') ?: new stdClass;
|
||||
$config->use_total_feed = $config->use_total_feed ?: 'Y';
|
||||
$config->feed_document_count = $config->feed_document_count ?: 15;
|
||||
$config->image_url = $config->image . '?' . date('YmdHis', filemtime($config->image));
|
||||
$config->use_total_feed = $config->use_total_feed ?? 'Y';
|
||||
$config->feed_document_count = $config->feed_document_count ?? 15;
|
||||
if (isset($config->image) && $config->image)
|
||||
{
|
||||
$config->image_url = $config->image . '?' . date('YmdHis', filemtime($config->image));
|
||||
}
|
||||
|
||||
return $config;
|
||||
}
|
||||
|
|
@ -26,8 +29,8 @@ class rssModel extends rss
|
|||
{
|
||||
$config = getModel('module')->getModulePartConfig('rss', $module_srl) ?: new stdClass;
|
||||
$config->module_srl = $module_srl;
|
||||
$config->open_rss = $config->open_rss ?: 'N';
|
||||
$config->open_total_feed = $config->open_total_feed ?: 'N';
|
||||
$config->open_rss = $config->open_rss ?? 'N';
|
||||
$config->open_total_feed = $config->open_total_feed ?? 'N';
|
||||
|
||||
return $config;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue