| @@ -16,8 +16,16 @@ | ||
| 16 | 16 | */ |
| 17 | 17 | class XMB 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 | |
| @@ -124,24 +132,24 @@ | ||
| 124 | 132 | // Forum dates. |
| 125 | 133 | $this->field_map[] = array( |
| 126 | 134 | 'to_type' => 'forum', |
| 127 | 135 | 'to_fieldname' => 'post_date', |
| 128 | - 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore | |
| 136 | + 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date | |
| 129 | 137 | ); |
| 130 | 138 | $this->field_map[] = array( |
| 131 | 139 | 'to_type' => 'forum', |
| 132 | 140 | 'to_fieldname' => 'post_date_gmt', |
| 133 | - 'default' => gmdate( 'Y-m-d H:i:s' ) | |
| 141 | + 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date | |
| 134 | 142 | ); |
| 135 | 143 | $this->field_map[] = array( |
| 136 | 144 | 'to_type' => 'forum', |
| 137 | 145 | 'to_fieldname' => 'post_modified', |
| 138 | - 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore | |
| 146 | + 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date | |
| 139 | 147 | ); |
| 140 | 148 | $this->field_map[] = array( |
| 141 | 149 | 'to_type' => 'forum', |
| 142 | 150 | 'to_fieldname' => 'post_modified_gmt', |
| 143 | - 'default' => gmdate( 'Y-m-d H:i:s' ) | |
| 151 | + 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date | |
| 144 | 152 | ); |
| 145 | 153 | |
| 146 | 154 | /** Topic Section *****************************************************/ |
| 147 | 155 | |