|
@@ 205-207 (lines=3) @@
|
202 |
|
$this->_message_type = $active_message_types[$this->_mt_name]; |
203 |
|
|
204 |
|
//verify we have the messenger and message type objects |
205 |
|
if ( ! $this->_messenger instanceof EE_messenger ) { |
206 |
|
throw new EE_Error( sprintf( __('The _messenger property must be an instance of EE_messenger by this point. It isn\'t. Something has gone wrong. Here is the value it holds:<br /> %s', 'event_espresso' ), print_r( $this->_messenger, TRUE ) ) ); |
207 |
|
} |
208 |
|
|
209 |
|
if ( ! $this->_message_type instanceof EE_message_type ) { |
210 |
|
throw new EE_Error( sprintf( __('The _message_type property must be an instance of EE_message_type by this point. It isn\'t. Something has gone wrong. Here is the value it holds:<br /> %s', 'event_espresso' ), print_r( $this->_message_type, TRUE ) ) ); |
|
@@ 209-211 (lines=3) @@
|
206 |
|
throw new EE_Error( sprintf( __('The _messenger property must be an instance of EE_messenger by this point. It isn\'t. Something has gone wrong. Here is the value it holds:<br /> %s', 'event_espresso' ), print_r( $this->_messenger, TRUE ) ) ); |
207 |
|
} |
208 |
|
|
209 |
|
if ( ! $this->_message_type instanceof EE_message_type ) { |
210 |
|
throw new EE_Error( sprintf( __('The _message_type property must be an instance of EE_message_type by this point. It isn\'t. Something has gone wrong. Here is the value it holds:<br /> %s', 'event_espresso' ), print_r( $this->_message_type, TRUE ) ) ); |
211 |
|
} |
212 |
|
|
213 |
|
|
214 |
|
$this->_fields = $this->_messenger->get_template_fields(); |