|
@@ 1003-1011 (lines=9) @@
|
| 1000 |
|
// add class prefix |
| 1001 |
|
$widget_class = 'EEW_' . $widget; |
| 1002 |
|
// does the widget exist ? |
| 1003 |
|
if ( ! is_readable( $widget_path . DS . $widget_class . $widget_ext ) ) { |
| 1004 |
|
$msg = sprintf( |
| 1005 |
|
__( |
| 1006 |
|
'The requested %s widget file could not be found or is not readable due to file permissions. Please ensure the following path is correct: %s', |
| 1007 |
|
'event_espresso' |
| 1008 |
|
), |
| 1009 |
|
$widget_class, |
| 1010 |
|
$widget_path . DS . $widget_class . $widget_ext |
| 1011 |
|
); |
| 1012 |
|
EE_Error::add_error( $msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__ ); |
| 1013 |
|
return; |
| 1014 |
|
} |
|
@@ 1099-1107 (lines=9) @@
|
| 1096 |
|
// add class prefix |
| 1097 |
|
$shortcode_class = 'EES_' . $shortcode; |
| 1098 |
|
// does the shortcode exist ? |
| 1099 |
|
if ( ! is_readable( $shortcode_path . DS . $shortcode_class . $shortcode_ext ) ) { |
| 1100 |
|
$msg = sprintf( |
| 1101 |
|
__( |
| 1102 |
|
'The requested %s shortcode file could not be found or is not readable due to file permissions. It should be in %s', |
| 1103 |
|
'event_espresso' |
| 1104 |
|
), |
| 1105 |
|
$shortcode_class, |
| 1106 |
|
$shortcode_path . DS . $shortcode_class . $shortcode_ext |
| 1107 |
|
); |
| 1108 |
|
EE_Error::add_error( $msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__ ); |
| 1109 |
|
return false; |
| 1110 |
|
} |