@@ 729-730 (lines=2) @@ | ||
726 | $wrapper_template = $this->_tmp_pack->get_wrapper( $this->name, $type ); |
|
727 | ||
728 | //check file exists and is readable |
|
729 | if ( !is_readable( $wrapper_template ) ) |
|
730 | throw new EE_Error( sprintf( __('Unable to access the template file for the %s messenger main content wrapper. The location being attempted is %s.', 'event_espresso' ), ucwords($this->label['singular']) , $wrapper_template ) ); |
|
731 | ||
732 | //add message type to template args |
|
733 | $this->_template_args['message_type'] = $this->_incoming_message_type; |
@@ 322-329 (lines=8) @@ | ||
319 | } |
|
320 | $paths = (array)$paths; |
|
321 | foreach ($paths as $path) { |
|
322 | if (strpos($path, '*') === false && ! is_readable($path)) { |
|
323 | throw new RuntimeException( |
|
324 | sprintf( |
|
325 | __('The following filepath is not readable: "%1$s"', 'event_espresso'), |
|
326 | $path |
|
327 | ) |
|
328 | ); |
|
329 | } |
|
330 | } |
|
331 | $this->paths = array_merge($this->paths, $paths); |
|
332 | } |