Skip to:
Content

bbPress.org

Changeset 5547


Ignore:
Timestamp:
10/10/2014 08:27:17 AM (10 years ago)
Author:
netweb
Message:

SimplePress 5:

  • Fix regression introduced in r5349 where topics were imported a second time as part of the reply section import.
  • Fix reply parent forum ID mini cache callback to use callback_forumid
  • Add topic author IP address to topics import section
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/converters/SimplePress5.php

    r5530 r5547  
    181181        );
    182182
     183        // Topic author ip (Stored in postmeta)
     184        $this->field_map[] = array(
     185            'from_tablename'  => 'sfposts',
     186            'from_fieldname'  => 'poster_ip',
     187            'join_tablename'  => 'sftopics',
     188            'join_type'       => 'INNER',
     189            'join_expression' => 'USING (topic_id) WHERE sfposts.post_index = 1',
     190            'to_type'         => 'topic',
     191            'to_fieldname'    => '_bbp_author_ip'
     192        );
     193
    183194        // Topic content.
    184195        // Note: We join the sfposts table because sftopics do not have content.
     
    290301            'from_tablename'  => 'sfposts',
    291302            'from_fieldname'  => 'forum_id',
     303            'from_expression' => 'WHERE post_index != 1',
    292304            'to_type'         => 'reply',
    293305            'to_fieldname'    => '_bbp_forum_id',
    294             'callback_method' => 'callback_topicid_to_forumid'
     306            'callback_method' => 'callback_forumid'
    295307        );
    296308
Note: See TracChangeset for help on using the changeset viewer.