|  | @@ 981-989 (lines=9) @@ | 
                                                            
                                    | 978 |  | 		// add class prefix | 
                                                            
                                    | 979 |  | 		$widget_class = 'EEW_' . $widget; | 
                                                            
                                    | 980 |  | 		// does the widget exist ? | 
                                                            
                                    | 981 |  | 		if ( ! is_readable( $widget_path . DS . $widget_class . $widget_ext )) { | 
                                                            
                                    | 982 |  | 			$msg = sprintf( | 
                                                            
                                    | 983 |  | 				__( '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' ), | 
                                                            
                                    | 984 |  | 				$widget_class, | 
                                                            
                                    | 985 |  | 				$widget_path . DS . $widget_class . $widget_ext | 
                                                            
                                    | 986 |  | 			); | 
                                                            
                                    | 987 |  | 			EE_Error::add_error( $msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__ ); | 
                                                            
                                    | 988 |  | 			return; | 
                                                            
                                    | 989 |  | 		} | 
                                                            
                                    | 990 |  | 		// load the widget class file | 
                                                            
                                    | 991 |  | 		require_once( $widget_path . DS . $widget_class . $widget_ext ); | 
                                                            
                                    | 992 |  | 		// verify that class exists | 
                                                                                
                                |  | @@ 1066-1074 (lines=9) @@ | 
                                                            
                                    | 1063 |  | 		// add class prefix | 
                                                            
                                    | 1064 |  | 		$shortcode_class = 'EES_' . $shortcode; | 
                                                            
                                    | 1065 |  | 		// does the shortcode exist ? | 
                                                            
                                    | 1066 |  | 		if ( ! is_readable( $shortcode_path . DS . $shortcode_class . $shortcode_ext )) { | 
                                                            
                                    | 1067 |  | 			$msg = sprintf( | 
                                                            
                                    | 1068 |  | 				__( 'The requested %s shortcode file could not be found or is not readable due to file permissions. It should be in %s', 'event_espresso' ), | 
                                                            
                                    | 1069 |  | 				$shortcode_class, | 
                                                            
                                    | 1070 |  | 				$shortcode_path . DS . $shortcode_class . $shortcode_ext | 
                                                            
                                    | 1071 |  | 			); | 
                                                            
                                    | 1072 |  | 			EE_Error::add_error( $msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__ ); | 
                                                            
                                    | 1073 |  | 			return FALSE; | 
                                                            
                                    | 1074 |  | 		} | 
                                                            
                                    | 1075 |  | 		// load the shortcode class file | 
                                                            
                                    | 1076 |  | 		require_once( $shortcode_path . $shortcode_class . $shortcode_ext ); | 
                                                            
                                    | 1077 |  | 		// verify that class exists |