core/db_classes/EE_Question_Form_Input.class.php 1 location
|
@@ 86-89 (lines=4) @@
|
| 83 |
|
* @return \EE_Question_Form_Input |
| 84 |
|
*/ |
| 85 |
|
public function __construct( EE_Question $QST = NULL, EE_Answer $ANS = NULL, $q_meta = array() ) { |
| 86 |
|
if ( empty( $QST ) || empty( $ANS ) ) { |
| 87 |
|
EE_Error::add_error( __( 'An error occurred. A valid EE_Question or EE_Answer object was not received.', 'event_espresso' ), __FILE__, __FUNCTION__, __LINE__ ); |
| 88 |
|
return NULL; |
| 89 |
|
} |
| 90 |
|
$this->_QST = $QST; |
| 91 |
|
$this->_ANS = $ANS; |
| 92 |
|
$this->set_question_form_input_meta( $q_meta ); |
core/EE_Module_Request_Router.core.php 1 location
|
@@ 137-141 (lines=5) @@
|
| 134 |
|
$module_method = EE_Config::get_route( $current_route, $key ); |
| 135 |
|
//EEH_Debug_Tools::printr( $module_method, '$module_method <br /><span style="font-size:10px;font-weight:normal;">' . __FILE__ . '<br />line no: ' . __LINE__ . '</span>', 'auto' ); |
| 136 |
|
// verify result was returned |
| 137 |
|
if ( empty( $module_method )) { |
| 138 |
|
$msg = sprintf( __( 'The requested route %s could not be mapped to any registered modules.', 'event_espresso' ), $current_route ); |
| 139 |
|
EE_Error::add_error( $msg, __FILE__, __FUNCTION__, __LINE__ ); |
| 140 |
|
return FALSE; |
| 141 |
|
} |
| 142 |
|
// verify that result is an array |
| 143 |
|
if ( ! is_array( $module_method )) { |
| 144 |
|
$msg = sprintf( __( 'The %s route has not been properly registered.', 'event_espresso' ), $current_route ); |
core/libraries/messages/EE_Message_Resource_Manager.lib.php 1 location
|
@@ 622-631 (lines=10) @@
|
| 619 |
|
$this->ensure_messenger_is_active( $messenger_name, $update_option ); |
| 620 |
|
} |
| 621 |
|
|
| 622 |
|
if ( ! empty( $not_installed_messenger ) ) { |
| 623 |
|
EE_Error::add_error( |
| 624 |
|
sprintf( |
| 625 |
|
__( 'The following messengers are either not installed or are invalid:%1$s %2$s', 'event_espresso' ), |
| 626 |
|
'<br />', |
| 627 |
|
implode( ', ', $not_installed_messenger ) |
| 628 |
|
), |
| 629 |
|
__FILE__, __FUNCTION__, __LINE__ |
| 630 |
|
); |
| 631 |
|
} |
| 632 |
|
} |
| 633 |
|
|
| 634 |
|
|
admin_pages/venues/Venues_Admin_Page.core.php 1 location
|
@@ 1368-1372 (lines=5) @@
|
| 1365 |
|
$category_desc= isset( $this->_req_data['category_desc'] ) ? $this->_req_data['category_desc'] : ''; |
| 1366 |
|
$category_parent = isset( $this->_req_data['category_parent'] ) ? $this->_req_data['category_parent'] : 0; |
| 1367 |
|
|
| 1368 |
|
if ( empty( $category_name ) ) { |
| 1369 |
|
$msg = __( 'You must add a name for the category.', 'event_espresso' ); |
| 1370 |
|
EE_Error::add_error( $msg, __FILE__, __FUNCTION__, __LINE__ ); |
| 1371 |
|
return false; |
| 1372 |
|
} |
| 1373 |
|
|
| 1374 |
|
|
| 1375 |
|
$term_args=array( |
core/EE_Session.core.php 1 location
|
@@ 431-434 (lines=4) @@
|
| 428 |
|
public function set_session_data( $data ) { |
| 429 |
|
|
| 430 |
|
// nothing ??? bad data ??? go home! |
| 431 |
|
if ( empty( $data ) || ! is_array( $data )) { |
| 432 |
|
EE_Error::add_error( __( 'No session data or invalid session data was provided.', 'event_espresso' ), __FILE__, __FUNCTION__, __LINE__ ); |
| 433 |
|
return FALSE; |
| 434 |
|
} |
| 435 |
|
|
| 436 |
|
foreach ( $data as $key =>$value ) { |
| 437 |
|
if ( isset( $this->_default_session_vars[ $key ] )) { |
core/helpers/EEH_Template.helper.php 1 location
|
@@ 446-450 (lines=5) @@
|
| 443 |
|
$cur_code_span_class = 'currency-code' |
| 444 |
|
) { |
| 445 |
|
// ensure amount was received |
| 446 |
|
if ($amount === null) { |
| 447 |
|
$msg = __('In order to format currency, an amount needs to be passed.', 'event_espresso'); |
| 448 |
|
EE_Error::add_error($msg, __FILE__, __FUNCTION__, __LINE__); |
| 449 |
|
return ''; |
| 450 |
|
} |
| 451 |
|
//ensure amount is float |
| 452 |
|
$amount = apply_filters('FHEE__EEH_Template__format_currency__raw_amount', (float)$amount); |
| 453 |
|
$CNT_ISO = apply_filters('FHEE__EEH_Template__format_currency__CNT_ISO', $CNT_ISO, $amount); |