| @@ 114-118 (lines=5) @@ | ||
| 111 | // add class prefix |
|
| 112 | $module_class = 'EE_PMT_' . $module; |
|
| 113 | // does the module exist ? |
|
| 114 | if ( ! is_readable( $payment_method_path . DS . $module_class . $module_ext )) { |
|
| 115 | $msg = sprintf( __( 'The requested %s payment method file could not be found or is not readable due to file permissions.', 'event_espresso' ), $module ); |
|
| 116 | EE_Error::add_error( $msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__ ); |
|
| 117 | return FALSE; |
|
| 118 | } |
|
| 119 | if ( WP_DEBUG === TRUE ) { EEH_Debug_Tools::instance()->start_timer(); } |
|
| 120 | // load the module class file |
|
| 121 | require_once( $payment_method_path . DS . $module_class . $module_ext ); |
|
| @@ 1205-1209 (lines=5) @@ | ||
| 1202 | $module_class = 'EED_' . $module; |
|
| 1203 | } |
|
| 1204 | // does the module exist ? |
|
| 1205 | if ( ! is_readable( $module_path . DS . $module_class . $module_ext ) ) { |
|
| 1206 | $msg = sprintf( |
|
| 1207 | __( |
|
| 1208 | 'The requested %s module file could not be found or is not readable due to file permissions.', |
|
| 1209 | 'event_espresso' |
|
| 1210 | ), |
|
| 1211 | $module |
|
| 1212 | ); |
|