@@ 972-980 (lines=9) @@ | ||
969 | // add class prefix |
|
970 | $widget_class = 'EEW_' . $widget; |
|
971 | // does the widget exist ? |
|
972 | if ( ! is_readable( $widget_path . DS . $widget_class . $widget_ext )) { |
|
973 | $msg = sprintf( |
|
974 | __( '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', 'event_espresso' ), |
|
975 | $widget_class, |
|
976 | $widget_path . DS . $widget_class . $widget_ext |
|
977 | ); |
|
978 | EE_Error::add_error( $msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__ ); |
|
979 | return; |
|
980 | } |
|
981 | // load the widget class file |
|
982 | require_once( $widget_path . DS . $widget_class . $widget_ext ); |
|
983 | // verify that class exists |
|
@@ 1057-1065 (lines=9) @@ | ||
1054 | // add class prefix |
|
1055 | $shortcode_class = 'EES_' . $shortcode; |
|
1056 | // does the shortcode exist ? |
|
1057 | if ( ! is_readable( $shortcode_path . DS . $shortcode_class . $shortcode_ext )) { |
|
1058 | $msg = sprintf( |
|
1059 | __( 'The requested %s shortcode file could not be found or is not readable due to file permissions. It should be in %s', 'event_espresso' ), |
|
1060 | $shortcode_class, |
|
1061 | $shortcode_path . DS . $shortcode_class . $shortcode_ext |
|
1062 | ); |
|
1063 | EE_Error::add_error( $msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__ ); |
|
1064 | return FALSE; |
|
1065 | } |
|
1066 | // load the shortcode class file |
|
1067 | require_once( $shortcode_path . $shortcode_class . $shortcode_ext ); |
|
1068 | // verify that class exists |