admin_pages/messages/Messages_Admin_Page.core.php 1 location
|
@@ 1898-1913 (lines=16) @@
|
| 1895 |
|
$message_template_group = EEM_Message_Template_Group::instance()->get_one_by_ID( |
| 1896 |
|
$this->_req_data['message_template_group_id'] |
| 1897 |
|
); |
| 1898 |
|
if (! $message_template_group instanceof EE_Message_Template_Group) { |
| 1899 |
|
EE_Error::add_error( |
| 1900 |
|
sprintf( |
| 1901 |
|
esc_html__( |
| 1902 |
|
'Unable to change the active state because the given id "%1$d" does not match a valid "%2$s"', |
| 1903 |
|
'event_espresso' |
| 1904 |
|
), |
| 1905 |
|
$this->_req_data['message_template_group_id'], |
| 1906 |
|
'EE_Message_Template_Group' |
| 1907 |
|
), |
| 1908 |
|
__FILE__, |
| 1909 |
|
__FUNCTION__, |
| 1910 |
|
__LINE__ |
| 1911 |
|
); |
| 1912 |
|
$success = false; |
| 1913 |
|
} |
| 1914 |
|
if ($success) { |
| 1915 |
|
$success = $status === 'off' |
| 1916 |
|
? $message_template_group->deactivate_context($this->_req_data['context']) |
core/business/EE_Registration_Processor.class.php 1 location
|
@@ 708-719 (lines=12) @@
|
| 705 |
|
); |
| 706 |
|
// grab the related ticket object for this line_item |
| 707 |
|
$ticket = $line_item->ticket(); |
| 708 |
|
if (! $ticket instanceof EE_Ticket) { |
| 709 |
|
EE_Error::add_error( |
| 710 |
|
sprintf( |
| 711 |
|
esc_html__('Line item %s did not contain a valid ticket', 'event_espresso'), |
| 712 |
|
$line_item->ID() |
| 713 |
|
), |
| 714 |
|
__FILE__, |
| 715 |
|
__FUNCTION__, |
| 716 |
|
__LINE__ |
| 717 |
|
); |
| 718 |
|
return null; |
| 719 |
|
} |
| 720 |
|
$registration_service = new CreateRegistrationService(); |
| 721 |
|
// then generate a new registration from that |
| 722 |
|
return $registration_service->create( |
admin_pages/transactions/Transactions_Admin_Page.core.php 1 location
|
@@ 477-486 (lines=10) @@
|
| 474 |
|
$this->_transaction->verify_abandoned_transaction_status(); |
| 475 |
|
} |
| 476 |
|
|
| 477 |
|
if (! $this->_transaction instanceof EE_Transaction) { |
| 478 |
|
$error_msg = sprintf( |
| 479 |
|
esc_html__( |
| 480 |
|
'An error occurred and the details for the transaction with the ID # %d could not be retrieved.', |
| 481 |
|
'event_espresso' |
| 482 |
|
), |
| 483 |
|
$TXN_ID |
| 484 |
|
); |
| 485 |
|
EE_Error::add_error($error_msg, __FILE__, __FUNCTION__, __LINE__); |
| 486 |
|
} |
| 487 |
|
} |
| 488 |
|
|
| 489 |
|
|
core/EE_Session.core.php 1 location
|
@@ 547-559 (lines=13) @@
|
| 544 |
|
return false; |
| 545 |
|
} |
| 546 |
|
foreach ($data as $key => $value) { |
| 547 |
|
if (isset($this->_default_session_vars[ $key ])) { |
| 548 |
|
EE_Error::add_error( |
| 549 |
|
sprintf( |
| 550 |
|
esc_html__( |
| 551 |
|
'Sorry! %s is a default session datum and can not be reset.', |
| 552 |
|
'event_espresso' |
| 553 |
|
), |
| 554 |
|
$key |
| 555 |
|
), |
| 556 |
|
__FILE__, |
| 557 |
|
__FUNCTION__, |
| 558 |
|
__LINE__ |
| 559 |
|
); |
| 560 |
|
return false; |
| 561 |
|
} |
| 562 |
|
$this->_session_data[ $key ] = $value; |