| @@ 1110-1115 (lines=6) @@ | ||
| 1107 | $this->cart->get_grand_total() |
|
| 1108 | ); |
|
| 1109 | } |
|
| 1110 | if ( $grand_total instanceof EE_Line_Item ) { |
|
| 1111 | $this->cart = EE_Cart::instance( $grand_total ); |
|
| 1112 | } else { |
|
| 1113 | EE_Error::add_error( __( 'A valid Cart was not found when attempting to update the model entity mapper.', 'event_espresso' ), __FILE__, __FUNCTION__, __LINE__ ); |
|
| 1114 | return false; |
|
| 1115 | } |
|
| 1116 | } |
|
| 1117 | return TRUE; |
|
| 1118 | } |
|
| @@ 379-385 (lines=7) @@ | ||
| 376 | public function save_data_rows_to_db( $csv_data_array, $export_from_site_a_to_b, $old_db_to_new_db_mapping ) { |
|
| 377 | foreach ( $csv_data_array as $model_name_in_csv_data => $model_data_from_import ) { |
|
| 378 | //now check that assumption was correct. If |
|
| 379 | if ( EE_Registry::instance()->is_model_name($model_name_in_csv_data)) { |
|
| 380 | $model_name = $model_name_in_csv_data; |
|
| 381 | }else { |
|
| 382 | // no table info in the array and no table name passed to the function?? FAIL |
|
| 383 | EE_Error::add_error( __('No table information was specified and/or found, therefore the import could not be completed','event_espresso'), __FILE__, __FUNCTION__, __LINE__ ); |
|
| 384 | return FALSE; |
|
| 385 | } |
|
| 386 | /* @var $model EEM_Base */ |
|
| 387 | $model = EE_Registry::instance()->load_model($model_name); |
|
| 388 | ||
| @@ 429-432 (lines=4) @@ | ||
| 426 | ) { |
|
| 427 | //update Config with post ID |
|
| 428 | $EE_Core_Config->{$critical_page[ 'id' ]} = $critical_page['post']->ID; |
|
| 429 | if ( ! EE_Config::instance()->update_espresso_config( FALSE, FALSE ) ) { |
|
| 430 | $msg = __( 'The Event Espresso critical page configuration settings could not be updated.', 'event_espresso' ); |
|
| 431 | EE_Error::add_error( $msg, __FILE__, __FUNCTION__, __LINE__ ); |
|
| 432 | } |
|
| 433 | } |
|
| 434 | ||
| 435 | $critical_page_problem = |
|