|
@@ 1032-1040 (lines=9) @@
|
| 1029 |
|
// add class prefix |
| 1030 |
|
$widget_class = 'EEW_' . $widget; |
| 1031 |
|
// does the widget exist ? |
| 1032 |
|
if ( ! is_readable( $widget_path . DS . $widget_class . $widget_ext ) ) { |
| 1033 |
|
$msg = sprintf( |
| 1034 |
|
__( |
| 1035 |
|
'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', |
| 1036 |
|
'event_espresso' |
| 1037 |
|
), |
| 1038 |
|
$widget_class, |
| 1039 |
|
$widget_path . DS . $widget_class . $widget_ext |
| 1040 |
|
); |
| 1041 |
|
EE_Error::add_error( $msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__ ); |
| 1042 |
|
return; |
| 1043 |
|
} |
|
@@ 1128-1136 (lines=9) @@
|
| 1125 |
|
// add class prefix |
| 1126 |
|
$shortcode_class = 'EES_' . $shortcode; |
| 1127 |
|
// does the shortcode exist ? |
| 1128 |
|
if ( ! is_readable( $shortcode_path . DS . $shortcode_class . $shortcode_ext ) ) { |
| 1129 |
|
$msg = sprintf( |
| 1130 |
|
__( |
| 1131 |
|
'The requested %s shortcode file could not be found or is not readable due to file permissions. It should be in %s', |
| 1132 |
|
'event_espresso' |
| 1133 |
|
), |
| 1134 |
|
$shortcode_class, |
| 1135 |
|
$shortcode_path . DS . $shortcode_class . $shortcode_ext |
| 1136 |
|
); |
| 1137 |
|
EE_Error::add_error( $msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__ ); |
| 1138 |
|
return false; |
| 1139 |
|
} |