@@ 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 ); |
@@ 1252-1256 (lines=5) @@ | ||
1249 | $module_class = 'EED_' . $module; |
|
1250 | } |
|
1251 | // does the module exist ? |
|
1252 | if ( ! is_readable( $module_path . DS . $module_class . $module_ext ) ) { |
|
1253 | $msg = sprintf( |
|
1254 | __( |
|
1255 | 'The requested %s module file could not be found or is not readable due to file permissions.', |
|
1256 | 'event_espresso' |
|
1257 | ), |
|
1258 | $module |
|
1259 | ); |