| @@ -16,8 +16,16 @@ | ||
| 16 | 16 | */ |
| 17 | 17 | class Phorum 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 | |
| @@ -108,24 +116,24 @@ | ||
| 108 | 116 | // Forum dates. |
| 109 | 117 | $this->field_map[] = array( |
| 110 | 118 | 'to_type' => 'forum', |
| 111 | 119 | 'to_fieldname' => 'post_date', |
| 112 | - 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore | |
| 120 | + 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date | |
| 113 | 121 | ); |
| 114 | 122 | $this->field_map[] = array( |
| 115 | 123 | 'to_type' => 'forum', |
| 116 | 124 | 'to_fieldname' => 'post_date_gmt', |
| 117 | - 'default' => gmdate( 'Y-m-d H:i:s' ) | |
| 125 | + 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date | |
| 118 | 126 | ); |
| 119 | 127 | $this->field_map[] = array( |
| 120 | 128 | 'to_type' => 'forum', |
| 121 | 129 | 'to_fieldname' => 'post_modified', |
| 122 | - 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore | |
| 130 | + 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date | |
| 123 | 131 | ); |
| 124 | 132 | $this->field_map[] = array( |
| 125 | 133 | 'to_type' => 'forum', |
| 126 | 134 | 'to_fieldname' => 'post_modified_gmt', |
| 127 | - 'default' => gmdate( 'Y-m-d H:i:s' ) | |
| 135 | + 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date | |
| 128 | 136 | ); |
| 129 | 137 | |
| 130 | 138 | /** Topic Section *****************************************************/ |
| 131 | 139 | |