core/libraries/plugin_api/EE_Register_Messages_Template_Pack.lib.php 1 location
|
@@ 166-169 (lines=4) @@
|
163 |
|
|
164 |
|
//loop through the existing registry and see if the classname is already present. |
165 |
|
foreach ( self::$_registry as $ref => $args ) { |
166 |
|
if ( $args['classname'] == $classname ) { |
167 |
|
EE_Error::add_error( sprintf( __('The %s template pack that you just activated cannot be registered with the messages system because there is already a template pack active using the same classname. Contact the author of this template pack to let them know of the conflict. To stop seeing this message you will need to deactivate this template pack.', 'event_espresso' ), (string) $setup_args['classname'] ), __FILE__, __LINE__, __FUNCTION__ ); |
168 |
|
return false; |
169 |
|
} |
170 |
|
} |
171 |
|
return true; |
172 |
|
} |
core/helpers/EEH_Template.helper.php 1 location
|
@@ 448-452 (lines=5) @@
|
445 |
|
$cur_code_span_class = 'currency-code' |
446 |
|
) { |
447 |
|
// ensure amount was received |
448 |
|
if ($amount === null) { |
449 |
|
$msg = __('In order to format currency, an amount needs to be passed.', 'event_espresso'); |
450 |
|
EE_Error::add_error($msg, __FILE__, __FUNCTION__, __LINE__); |
451 |
|
return ''; |
452 |
|
} |
453 |
|
//ensure amount is float |
454 |
|
$amount = apply_filters('FHEE__EEH_Template__format_currency__raw_amount', (float)$amount); |
455 |
|
$CNT_ISO = apply_filters('FHEE__EEH_Template__format_currency__CNT_ISO', $CNT_ISO, $amount); |
core/helpers/EEH_Activation.helper.php 1 location
|
@@ 474-478 (lines=5) @@
|
471 |
|
if ($critical_page['post'] === null) { |
472 |
|
$critical_page = EEH_Activation::create_critical_page($critical_page); |
473 |
|
// REALLY? Still nothing ??!?!? |
474 |
|
if ($critical_page['post'] === null) { |
475 |
|
$msg = __( |
476 |
|
'The Event Espresso critical page configuration settings could not be updated.', |
477 |
|
'event_espresso' |
478 |
|
); |
479 |
|
EE_Error::add_error($msg, __FILE__, __FUNCTION__, __LINE__); |
480 |
|
break; |
481 |
|
} |
core/EE_Module_Request_Router.core.php 1 location
|
@@ 190-200 (lines=11) @@
|
187 |
|
*/ |
188 |
|
public static function module_factory($module_name) |
189 |
|
{ |
190 |
|
if ($module_name === 'EED_Module') { |
191 |
|
EE_Error::add_error( |
192 |
|
sprintf( |
193 |
|
__( |
194 |
|
'EED_Module is an abstract parent class an can not be instantiated. Please provide a proper module name.', |
195 |
|
'event_espresso' |
196 |
|
), $module_name |
197 |
|
), __FILE__, __FUNCTION__, __LINE__ |
198 |
|
); |
199 |
|
return null; |
200 |
|
} |
201 |
|
// instantiate module class |
202 |
|
$module = new $module_name(); |
203 |
|
// ensure that class is actually a module |