|
@@ 2968-2970 (lines=3) @@
|
| 2965 |
|
//first let's set individual error properties if doing_ajax and the properties aren't already set. |
| 2966 |
|
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) { |
| 2967 |
|
$notices = EE_Error::get_notices( false ); |
| 2968 |
|
if ( empty( $this->_template_args['success'] ) ) { |
| 2969 |
|
$this->_template_args['success'] = isset( $notices['success'] ) ? $notices['success'] : false; |
| 2970 |
|
} |
| 2971 |
|
|
| 2972 |
|
if ( empty( $this->_template_args['errors'] ) ) { |
| 2973 |
|
$this->_template_args['errors'] = isset( $notices['errors'] ) ? $notices['errors'] : false; |
|
@@ 2972-2974 (lines=3) @@
|
| 2969 |
|
$this->_template_args['success'] = isset( $notices['success'] ) ? $notices['success'] : false; |
| 2970 |
|
} |
| 2971 |
|
|
| 2972 |
|
if ( empty( $this->_template_args['errors'] ) ) { |
| 2973 |
|
$this->_template_args['errors'] = isset( $notices['errors'] ) ? $notices['errors'] : false; |
| 2974 |
|
} |
| 2975 |
|
|
| 2976 |
|
if ( empty( $this->_template_args['attention'] ) ) { |
| 2977 |
|
$this->_template_args['attention'] = isset( $notices['attention'] ) ? $notices['attention'] : false; |
|
@@ 2976-2978 (lines=3) @@
|
| 2973 |
|
$this->_template_args['errors'] = isset( $notices['errors'] ) ? $notices['errors'] : false; |
| 2974 |
|
} |
| 2975 |
|
|
| 2976 |
|
if ( empty( $this->_template_args['attention'] ) ) { |
| 2977 |
|
$this->_template_args['attention'] = isset( $notices['attention'] ) ? $notices['attention'] : false; |
| 2978 |
|
} |
| 2979 |
|
} |
| 2980 |
|
|
| 2981 |
|
$this->_template_args['notices'] = EE_Error::get_notices(); |