|
@@ 3685-3687 (lines=3) @@
|
| 3682 |
|
// first let's set individual error properties if doing_ajax and the properties aren't already set. |
| 3683 |
|
if (defined('DOING_AJAX') && DOING_AJAX) { |
| 3684 |
|
$notices = EE_Error::get_notices(false); |
| 3685 |
|
if (empty($this->_template_args['success'])) { |
| 3686 |
|
$this->_template_args['success'] = isset($notices['success']) ? $notices['success'] : false; |
| 3687 |
|
} |
| 3688 |
|
if (empty($this->_template_args['errors'])) { |
| 3689 |
|
$this->_template_args['errors'] = isset($notices['errors']) ? $notices['errors'] : false; |
| 3690 |
|
} |
|
@@ 3688-3690 (lines=3) @@
|
| 3685 |
|
if (empty($this->_template_args['success'])) { |
| 3686 |
|
$this->_template_args['success'] = isset($notices['success']) ? $notices['success'] : false; |
| 3687 |
|
} |
| 3688 |
|
if (empty($this->_template_args['errors'])) { |
| 3689 |
|
$this->_template_args['errors'] = isset($notices['errors']) ? $notices['errors'] : false; |
| 3690 |
|
} |
| 3691 |
|
if (empty($this->_template_args['attention'])) { |
| 3692 |
|
$this->_template_args['attention'] = isset($notices['attention']) ? $notices['attention'] : false; |
| 3693 |
|
} |
|
@@ 3691-3693 (lines=3) @@
|
| 3688 |
|
if (empty($this->_template_args['errors'])) { |
| 3689 |
|
$this->_template_args['errors'] = isset($notices['errors']) ? $notices['errors'] : false; |
| 3690 |
|
} |
| 3691 |
|
if (empty($this->_template_args['attention'])) { |
| 3692 |
|
$this->_template_args['attention'] = isset($notices['attention']) ? $notices['attention'] : false; |
| 3693 |
|
} |
| 3694 |
|
} |
| 3695 |
|
$this->_template_args['notices'] = EE_Error::get_notices(); |
| 3696 |
|
// IF this isn't ajax we need to create a transient for the notices using the route (however, overridden if $sticky_notices == true) |