mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Tab instead of space
IDE preference
This commit is contained in:
parent
58983f717a
commit
7cdf19363d
1 changed files with 7 additions and 7 deletions
|
@ -86,13 +86,13 @@ class FlashHelper extends AppHelper {
|
|||
CakeSession::delete("Message.$key");
|
||||
|
||||
// backwards compatibility with Session->setFlash
|
||||
if($flash['element'] === 'default') {
|
||||
$class = 'message';
|
||||
if (!empty($flash['params']['class'])) {
|
||||
$class = $flash['params']['class'];
|
||||
}
|
||||
return '<div id="' . $key . 'Message" class="' . $class . '">' . $flash['message'] . '</div>';
|
||||
}
|
||||
if($flash['element'] === 'default') {
|
||||
$class = 'message';
|
||||
if (!empty($flash['params']['class'])) {
|
||||
$class = $flash['params']['class'];
|
||||
}
|
||||
return '<div id="' . $key . 'Message" class="' . $class . '">' . $flash['message'] . '</div>';
|
||||
}
|
||||
|
||||
return $this->_View->element($flash['element'], $flash);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue