@@ 244-247 (lines=4) @@ | ||
241 | }else{ |
|
242 | //now get the db table name from it (the part between square brackets) |
|
243 | $success = preg_match('~(.*)\[(.*)\]~', $column_name,$matches); |
|
244 | if (!$success){ |
|
245 | EE_Error::add_error( sprintf(__("The column titled %s is invalid for importing. It must be be in the format of 'Nice Name[model_field_name]' in row %s", "event_espresso"),$column_name,implode(",",$data)), __FILE__, __FUNCTION__, __LINE__ ); |
|
246 | return false; |
|
247 | } |
|
248 | $headers[$i] = $matches[2]; |
|
249 | } |
|
250 |
@@ 639-648 (lines=10) @@ | ||
636 | $this->ensure_messenger_is_active($messenger_name, $update_option); |
|
637 | } |
|
638 | ||
639 | if (! empty($not_installed)) { |
|
640 | EE_Error::add_error( |
|
641 | sprintf( |
|
642 | __('The following messengers are either not installed or are invalid:%1$s %2$s', 'event_espresso'), |
|
643 | '<br />', |
|
644 | implode(', ', $not_installed) |
|
645 | ), |
|
646 | __FILE__, __FUNCTION__, __LINE__ |
|
647 | ); |
|
648 | } |
|
649 | } |
|
650 | ||
651 |
@@ 536-540 (lines=5) @@ | ||
533 | { |
|
534 | ||
535 | // nothing ??? bad data ??? go home! |
|
536 | if (empty($data) || ! is_array($data)) { |
|
537 | EE_Error::add_error(__('No session data or invalid session data was provided.', 'event_espresso'), __FILE__, |
|
538 | __FUNCTION__, __LINE__); |
|
539 | return false; |
|
540 | } |
|
541 | foreach ($data as $key => $value) { |
|
542 | if (isset($this->_default_session_vars[ $key ])) { |
|
543 | EE_Error::add_error(sprintf(__('Sorry! %s is a default session datum and can not be reset.', |