| @@ 358-368 (lines=11) @@ | ||
| 355 | $this->_body(), |
|
| 356 | $this->_headers() |
|
| 357 | ); |
|
| 358 | if ( ! $success ) { |
|
| 359 | EE_Error::add_error( |
|
| 360 | sprintf( |
|
| 361 | __( 'The email did not send successfully.%3$sThe WordPress wp_mail function is used for sending mails but does not give any useful information when an email fails to send.%3$sIt is possible the "to" address (%1$s) or "from" address (%2$s) is invalid.%3$s', 'event_espresso'), |
|
| 362 | $this->_to, |
|
| 363 | $this->_from, |
|
| 364 | '<br />' |
|
| 365 | ), |
|
| 366 | __FILE__, __FUNCTION__, __LINE__ |
|
| 367 | ); |
|
| 368 | } |
|
| 369 | return $success; |
|
| 370 | } |
|
| 371 | ||
| @@ 329-332 (lines=4) @@ | ||
| 326 | $success = true; |
|
| 327 | } |
|
| 328 | ||
| 329 | if ( $this->_total_update_errors > 0 ) { |
|
| 330 | EE_Error::add_error(sprintf(__("'One or more errors occurred, and a total of %s existing records in the database were <strong>not</strong> updated.'", "event_espresso"),$this->_total_update_errors), __FILE__, __FUNCTION__, __LINE__ ); |
|
| 331 | $error = true; |
|
| 332 | } |
|
| 333 | if ( $this->_total_insert_errors > 0 ) { |
|
| 334 | EE_Error::add_error(sprintf(__("One or more errors occurred, and a total of %s new records were <strong>not</strong> added to the database.'", "event_espresso"),$this->_total_insert_errors), __FILE__, __FUNCTION__, __LINE__ ); |
|
| 335 | $error = true; |
|
| @@ 333-336 (lines=4) @@ | ||
| 330 | EE_Error::add_error(sprintf(__("'One or more errors occurred, and a total of %s existing records in the database were <strong>not</strong> updated.'", "event_espresso"),$this->_total_update_errors), __FILE__, __FUNCTION__, __LINE__ ); |
|
| 331 | $error = true; |
|
| 332 | } |
|
| 333 | if ( $this->_total_insert_errors > 0 ) { |
|
| 334 | EE_Error::add_error(sprintf(__("One or more errors occurred, and a total of %s new records were <strong>not</strong> added to the database.'", "event_espresso"),$this->_total_insert_errors), __FILE__, __FUNCTION__, __LINE__ ); |
|
| 335 | $error = true; |
|
| 336 | } |
|
| 337 | ||
| 338 | //lastly, we need to update the datetime and ticket sold amounts |
|
| 339 | //as those may ahve been affected by this |
|