| @@ -16,8 +16,16 @@ | ||
| 16 | 16 | */ |
| 17 | 17 | class Vanilla extends BBP_Converter_Base { |
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | + * Main Constructor | |
| 21 | + * | |
| 22 | + */ | |
| 23 | + public function __construct() { | |
| 24 | + parent::__construct(); | |
| 25 | + } | |
| 26 | + | |
| 27 | + /** | |
| 20 | 28 | * Sets up the field mappings |
| 21 | 29 | */ |
| 22 | 30 | public function setup_globals() { |
| 23 | 31 | |
| @@ -86,9 +94,9 @@ | ||
| 86 | 94 | 'to_type' => 'forum', |
| 87 | 95 | 'to_fieldname' => 'post_title' |
| 88 | 96 | ); |
| 89 | 97 | |
| 90 | - // Forum slug (Clean name to avoid conflicts) | |
| 98 | + // Forum slug (Clean name to avoid confilcts) | |
| 91 | 99 | $this->field_map[] = array( |
| 92 | 100 | 'from_tablename' => 'Category', |
| 93 | 101 | 'from_fieldname' => 'Name', |
| 94 | 102 | 'to_type' => 'forum', |
| @@ -574,9 +582,9 @@ | ||
| 574 | 582 | |
| 575 | 583 | /** |
| 576 | 584 | * Clean Root Parent ID -1 to 0 |
| 577 | 585 | * |
| 578 | - * @param int $parent_id Vanilla v2.x Parent ID | |
| 586 | + * @param int $parent Vanilla v2.x Parent ID | |
| 579 | 587 | * @return int |
| 580 | 588 | */ |
| 581 | 589 | public function callback_forum_parent( $parent_id = 0 ) { |
| 582 | 590 | if ( -1 === (int) $parent_id ) { |