Version 4.6.0
This commit is contained in:
1 parent
f79dcf067a
commit
517a5e1f70
2036 files changed
+110041
-26162
No files matched your search
@@ -110,19 +110,19 @@ class _Forums extends Core
|
||||
$return[ $k ] = array(
|
||||
'step_title' => 'convert_forums_rss_imports',
|
||||
'step_method' => 'convertForumsRssImports',
|
||||
'ips_rows' => \IPS\Db::i()->select( 'COUNT(*)', 'forums_rss_import' ),
|
||||
'ips_rows' => \IPS\Db::i()->select( 'COUNT(*)', 'core_rss_import', [ 'rss_import_class=?', 'IPS\\forums\\Topic' ] ),
|
||||
'source_rows' => array( 'table' => $v['table'], 'where' => $v['where'] ),
|
||||
'per_cycle' => 200,
|
||||
'dependencies' => array( 'convertForumsForums' ),
|
||||
'link_type' => 'forums_rss_import',
|
||||
);
|
||||
break;
|
||||
|
||||
|
||||
case 'convertForumsRssImported':
|
||||
$return[ $k ] = array(
|
||||
'step_title' => 'convert_forums_rss_imported',
|
||||
'step_method' => 'convertForumsRssImported',
|
||||
'ips_rows' => \IPS\Db::i()->select( 'COUNT(*)', 'forums_rss_imported' ),
|
||||
'ips_rows' => \IPS\Db::i()->select( 'COUNT(*)', 'core_rss_imported', array( 'rss_imported_import_id IN(' . (string) \IPS\Db::i()->select( 'rss_import_id', 'core_rss_import', array( "rss_import_class='IPS\\forums\\Topic'" ) ) . ')' ) )->first(),
|
||||
'source_rows' => array( 'table' => $v['table'], 'where' => $v['where'] ),
|
||||
'per_cycle' => 200,
|
||||
'dependencies' => array( 'convertForumsTopics', 'convertForumsRssImports' ),
|
||||
@@ -912,6 +912,11 @@ class _Forums extends Core
|
||||
$info['title'] = "Untitled Topic {$info['tid']}";
|
||||
$this->software->app->log( 'topic_missing_title', __METHOD__, \IPS\convert\App::LOG_WARNING );
|
||||
}
|
||||
elseif( mb_strlen( $info['title'] ) > 255 )
|
||||
{
|
||||
$info['title'] = mb_substr( $info['title'], 0, 255 );
|
||||
$this->software->app->log( 'topic_title_truncated', __METHOD__, \IPS\convert\App::LOG_NOTICE, $info['tid'] );
|
||||
}
|
||||
|
||||
if ( isset( $info['forum_id'] ) )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user