mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-05-27 18:03:33 +00:00
parent
135a24e0f1
commit
c59fb85da8
3 changed files with 52 additions and 29 deletions
lib/Cake/View/Helper
|
@ -82,10 +82,15 @@ class FlashHelper extends AppHelper {
|
|||
));
|
||||
}
|
||||
|
||||
$flash = $options + $flash;
|
||||
CakeSession::delete("Message.$key");
|
||||
$flash['key'] = $key;
|
||||
|
||||
return $this->_View->element($flash['element'], $flash);
|
||||
$out = '';
|
||||
foreach ($flash as $message) {
|
||||
$message['key'] = $key;
|
||||
$message = $options + $message;
|
||||
$out .= $this->_View->element($message['element'], $message);
|
||||
}
|
||||
|
||||
return $out;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue