Version 4.6.0

This commit is contained in:
Neo committed 2025-12-19 05:55:31 -08:00
1 parent f79dcf067a
commit 517a5e1f70
2036 files changed
+110041 -26162

No files matched your search

+11 -2
View File
@@ -46,6 +46,12 @@ class _Upgrade
*/
public function step2()
{
/* Make sure we have the table first */
if( !\IPS\Db::i()->checkForTable('blog_rss_import') )
{
return TRUE;
}
/* Move over blog_rss_import to core_rss_import */
foreach( \IPS\Db::i()->select( '*', 'blog_rss_import' ) as $rss )
{
@@ -69,7 +75,7 @@ class _Upgrade
'rss_import_member' => $rss['rss_member'],
'rss_import_time' => 0,
'rss_import_last_import' => $rss['rss_last_import'],
'rss_import_showlink' => $rss['rss_import_show_link'],
'rss_import_showlink' => $rss['rss_import_show_link'] ?? '',
'rss_import_topic_pre' => '',
'rss_import_auto_follow' => 0,
'rss_import_settings' => json_encode( array(
@@ -103,7 +109,10 @@ class _Upgrade
\IPS\Db::i()->delete( 'core_tasks', array( '`key`=?', 'blogrssimport' ) );
/* Delete old RSS Table */
\IPS\Db::i()->dropTable( array( 'blog_rss_import', 'blog_rss_imported' ) );
if( \IPS\Db::i()->checkForTable('blog_rss_import') )
{
\IPS\Db::i()->dropTable( array( 'blog_rss_import', 'blog_rss_imported' ) );
}
return TRUE;
}