Version 4.3.0
This commit is contained in:
1 parent
96997ddd8e
commit
fe1acf984a
1349 files changed
+116159
-67711
No files matched your search
@@ -185,6 +185,17 @@ class _Mybb extends \IPS\convert\Software
|
||||
return array( "f_forum_last_post_data", "f_rebuild_posts", "f_recounting_forums", "f_recounting_topics", "f_topic_tags_recount" );
|
||||
}
|
||||
|
||||
/**
|
||||
* Fix Post Data
|
||||
*
|
||||
* @param string Post
|
||||
* @return string Fixed Posts
|
||||
*/
|
||||
public static function fixPostData( $post )
|
||||
{
|
||||
return \IPS\convert\Software\Core\Mybb::fixPostData( $post );
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert forums
|
||||
*
|
||||
@@ -237,7 +248,6 @@ class _Mybb extends \IPS\convert\Software
|
||||
'follow_notify_freq' => 'immediate',
|
||||
'follow_notify_sent' => 0,
|
||||
'follow_visible' => 1,
|
||||
'follow_index_id' => NULL
|
||||
) );
|
||||
}
|
||||
|
||||
@@ -413,7 +423,6 @@ class _Mybb extends \IPS\convert\Software
|
||||
'follow_notify_freq' => 'immediate',
|
||||
'follow_notify_sent' => 0,
|
||||
'follow_visible' => 1,
|
||||
'follow_index_id' => NULL
|
||||
) );
|
||||
}
|
||||
|
||||
@@ -498,7 +507,7 @@ class _Mybb extends \IPS\convert\Software
|
||||
/* Warnings */
|
||||
foreach( $this->db->select( '*', 'warnings', array( "pid=?", $row['pid'] ) ) AS $warn )
|
||||
{
|
||||
$libraryClass->convertWarnLog( array(
|
||||
$warnId = $libraryClass->convertWarnLog( array(
|
||||
'wl_id' => $warn['wid'],
|
||||
'wl_member' => $warn['uid'],
|
||||
'wl_moderator' => $warn['issuedby'],
|
||||
@@ -506,6 +515,17 @@ class _Mybb extends \IPS\convert\Software
|
||||
'wl_points' => $warn['points'],
|
||||
'wl_note_mods' => $warn['notes'],
|
||||
) );
|
||||
|
||||
/* Add a member history record for this member */
|
||||
$libraryClass->convertMemberHistory( array(
|
||||
'log_id' => 'w' . $warn['wid'],
|
||||
'log_member' => $warn['uid'],
|
||||
'log_by' => $warn['issuedby'],
|
||||
'log_type' => 'warning',
|
||||
'log_data' => array( 'wid' => $warnId ),
|
||||
'log_date' => $warn['dateline']
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
$libraryClass->setLastKeyValue( $row['pid'] );
|
||||
|
||||
Reference in new issue
Block a user