Skip to:
Content

bbPress.org

Changeset 5574


Ignore:
Timestamp:
11/22/2014 12:44:07 PM (11 years ago)
Author:
netweb
Message:

Phorum importer: Include Subscribed Topics
Props netweb. See #2668

File:
1 edited

Legend:

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

    r5551 r5574  
    289289         */
    290290
     291        /** Topic Subscriptions Section ***************************************/
     292
     293        // Subscribed topic ID (Stored in usermeta)
     294        $this->field_map[] = array(
     295            'from_tablename'  => 'subscribers',
     296            'from_fieldname'  => 'thread',
     297            'to_type'         => 'topic_subscriptions',
     298            'to_fieldname'    => '_bbp_subscriptions'
     299        );
     300
     301        // Subscribed user ID (Stored in usermeta)
     302        $this->field_map[] = array(
     303            'from_tablename'  => 'subscribers',
     304            'from_fieldname'  => 'user_id',
     305            'to_type'         => 'topic_subscriptions',
     306            'to_fieldname'    => 'user_id',
     307            'callback_method' => 'callback_userid'
     308        );
     309
    291310        /** Reply Section *****************************************************/
    292311
Note: See TracChangeset for help on using the changeset viewer.