@@ 318-321 (lines=4) @@ | ||
315 | //save the mapping from old db to new db in case they try re-importing the same data from the same website again |
|
316 | update_option('ee_id_mapping_from'.sanitize_title($old_site_url),$old_db_to_new_db_mapping); |
|
317 | ||
318 | if ( $this->_total_updates > 0 ) { |
|
319 | EE_Error::add_success( sprintf(__("%s existing records in the database were updated.", "event_espresso"),$this->_total_updates)); |
|
320 | $success = true; |
|
321 | } |
|
322 | if ( $this->_total_inserts > 0 ) { |
|
323 | EE_Error::add_success(sprintf(__("%s new records were added to the database.", "event_espresso"),$this->_total_inserts)); |
|
324 | $success = true; |
|
@@ 322-325 (lines=4) @@ | ||
319 | EE_Error::add_success( sprintf(__("%s existing records in the database were updated.", "event_espresso"),$this->_total_updates)); |
|
320 | $success = true; |
|
321 | } |
|
322 | if ( $this->_total_inserts > 0 ) { |
|
323 | EE_Error::add_success(sprintf(__("%s new records were added to the database.", "event_espresso"),$this->_total_inserts)); |
|
324 | $success = true; |
|
325 | } |
|
326 | ||
327 | if ( $this->_total_update_errors > 0 ) { |
|
328 | 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__ ); |