core/libraries/messages/EE_Messages_Processor.lib.php 1 location
|
@@ 552-555 (lines=4) @@
|
549 |
|
|
550 |
|
foreach( $regIDs as $regID ) { |
551 |
|
$reg = EEM_Registration::instance()->get_one_by_ID( $regID ); |
552 |
|
if ( ! $reg instanceof EE_Registration ) { |
553 |
|
EE_Error::add_error( sprintf( __('Unable to retrieve a registration object for the given reg id (%s)', 'event_espresso'), $regID ) ); |
554 |
|
return false; |
555 |
|
} |
556 |
|
$regs_to_send[$reg->transaction_ID()][$reg->status_ID()][] = $reg; |
557 |
|
} |
558 |
|
|
core/admin/EE_Admin_Page.core.php 1 location
|
@@ 3321-3324 (lines=4) @@
|
3318 |
|
if ($config_saved && $net_saved) { |
3319 |
|
EE_Error::add_success(sprintf(__('"%s" have been successfully updated.', 'event_espresso'), $tab)); |
3320 |
|
return true; |
3321 |
|
} else { |
3322 |
|
EE_Error::add_error(sprintf(__('The "%s" were not updated.', 'event_espresso'), $tab), $file, $func, $line); |
3323 |
|
return false; |
3324 |
|
} |
3325 |
|
} |
3326 |
|
|
3327 |
|
|
core/db_classes/EE_Base_Class.class.php 1 location
|
@@ 1098-1112 (lines=15) @@
|
1095 |
|
public function get_DateTime_object($field_name) |
1096 |
|
{ |
1097 |
|
$field_settings = $this->get_model()->field_settings_for($field_name); |
1098 |
|
if ( ! $field_settings instanceof EE_Datetime_Field) { |
1099 |
|
EE_Error::add_error( |
1100 |
|
sprintf( |
1101 |
|
__( |
1102 |
|
'The field %s is not an EE_Datetime_Field field. There is no DateTime object stored on this field type.', |
1103 |
|
'event_espresso' |
1104 |
|
), |
1105 |
|
$field_name |
1106 |
|
), |
1107 |
|
__FILE__, |
1108 |
|
__FUNCTION__, |
1109 |
|
__LINE__ |
1110 |
|
); |
1111 |
|
return false; |
1112 |
|
} |
1113 |
|
return $this->_fields[$field_name]; |
1114 |
|
} |
1115 |
|
|
core/EE_Module_Request_Router.core.php 1 location
|
@@ 204-210 (lines=7) @@
|
201 |
|
// instantiate module class |
202 |
|
$module = new $module_name(); |
203 |
|
// ensure that class is actually a module |
204 |
|
if (! $module instanceof EED_Module) { |
205 |
|
EE_Error::add_error( |
206 |
|
sprintf(__('The requested %s module is not of the class EED_Module.', 'event_espresso'), $module_name), |
207 |
|
__FILE__, __FUNCTION__, __LINE__ |
208 |
|
); |
209 |
|
return null; |
210 |
|
} |
211 |
|
return $module; |
212 |
|
} |
213 |
|
|