Version 4.7.13
This commit is contained in:
1 parent
fd22d99e69
commit
7124a02564
954 files changed
+29277
-59308
No files matched your search
@@ -147,7 +147,7 @@ class _Bbpress extends \IPS\convert\Software
|
||||
$libraryClass::setKey( 'ID' );
|
||||
|
||||
/* Which username type? */
|
||||
$userName = $this->app->_parent->_session['more_info']['convertMembers']['username'] == 'username' ? 'user_login' : 'display_name';
|
||||
$userName = ( isset( $this->app->_parent->_session['more_info']['convertMembers']['username'] ) AND $this->app->_parent->_session['more_info']['convertMembers']['username'] == 'username') ? 'user_login' : 'display_name';
|
||||
|
||||
foreach( $this->fetch( 'posts', 'ID', array( 'post_type=?', 'topic' ) ) AS $row )
|
||||
{
|
||||
@@ -189,7 +189,7 @@ class _Bbpress extends \IPS\convert\Software
|
||||
$libraryClass::setKey( 'ID' );
|
||||
|
||||
/* Which username type? */
|
||||
$userName = $this->app->_parent->_session['more_info']['convertMembers']['username'] == 'username' ? 'user_login' : 'display_name';
|
||||
$userName = ( isset( $this->app->_parent->_session['more_info']['convertMembers']['username'] ) AND $this->app->_parent->_session['more_info']['convertMembers']['username'] == 'username') ? 'user_login' : 'display_name';
|
||||
|
||||
foreach( $this->fetch( 'posts', 'ID', array( '(post_type=? OR post_type=?)', 'topic', 'reply' ) ) AS $row )
|
||||
{
|
||||
|
||||
@@ -31,7 +31,7 @@ class _Wpforo extends \IPS\convert\Software
|
||||
public static function softwareName()
|
||||
{
|
||||
/* Child classes must override this method */
|
||||
return "wpForo (1.9.x)";
|
||||
return "wpForo (2.1.x)";
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -324,10 +324,10 @@ class _Wpforo extends \IPS\convert\Software
|
||||
$libraryClass->convertForumsPost( $info );
|
||||
|
||||
/* Reputation */
|
||||
foreach( $this->db->select( '*', 'wpforo_likes', [ 'postid=?', $row['postid'] ] ) AS $rep )
|
||||
foreach( $this->db->select( '*', 'wpforo_reactions', [ 'postid=? AND type=?', $row['postid'], 'up' ] ) AS $rep )
|
||||
{
|
||||
$libraryClass->convertReputation( [
|
||||
'id' => $rep['likeid'],
|
||||
'id' => $rep['reactionid'],
|
||||
'app' => 'forums',
|
||||
'type' => 'pid',
|
||||
'type_id' => $row['postid'],
|
||||
|
||||
Reference in new issue
Block a user