|
@@ 68-74 (lines=7) @@
|
| 65 |
|
$notice_str = $CI->ion_auth->messages(); |
| 66 |
|
} elseif($notices = $CI->session->flashdata('errors')) { |
| 67 |
|
$CI->session->unset_userdata('errors'); //Sometimes we call this flashdata without redirecting, so make sure we remove it |
| 68 |
|
if(is_string($notices)) { |
| 69 |
|
$notice_str = $CI->config->item('error_start_delimiter', 'ion_auth') . $notices . $CI->config->item('error_end_delimiter', 'ion_auth'); |
| 70 |
|
} elseif(is_array($notices)) { |
| 71 |
|
foreach($notices as $notice) { |
| 72 |
|
$notice_str .= $CI->config->item('error_start_delimiter', 'ion_auth') . $notice . $CI->config->item('error_end_delimiter', 'ion_auth'); |
| 73 |
|
} |
| 74 |
|
} |
| 75 |
|
} elseif($notices = $CI->session->flashdata('notices')) { |
| 76 |
|
$CI->session->unset_userdata('notices'); //Sometimes we call this flashdata without redirecting, so make sure we remove it |
| 77 |
|
if(is_string($notices)) { |
|
@@ 77-83 (lines=7) @@
|
| 74 |
|
} |
| 75 |
|
} elseif($notices = $CI->session->flashdata('notices')) { |
| 76 |
|
$CI->session->unset_userdata('notices'); //Sometimes we call this flashdata without redirecting, so make sure we remove it |
| 77 |
|
if(is_string($notices)) { |
| 78 |
|
$notice_str = $CI->config->item('message_start_delimiter', 'ion_auth') . $notices . $CI->config->item('message_end_delimiter', 'ion_auth'); |
| 79 |
|
} elseif(is_array($notices)) { |
| 80 |
|
foreach($notices as $notice) { |
| 81 |
|
$notice_str .= $CI->config->item('message_start_delimiter', 'ion_auth') . $notice . $CI->config->item('message_end_delimiter', 'ion_auth'); |
| 82 |
|
} |
| 83 |
|
} |
| 84 |
|
} |
| 85 |
|
return $notice_str; |
| 86 |
|
} |