Skip to content
Permalink
Browse files

Set the `key` variable in the SessionHelper.

This fixes cross template compatibility between the Flash and Session
helpers.

Refs #7365
  • Loading branch information...
markstory committed Sep 10, 2015
1 parent 2d2c5be commit 9eafde13d220209f4e783ddde2dd82f6bb8499db
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Cake/View/Helper/SessionHelper.php
@@ -156,6 +156,7 @@ public function flash($key = 'flash', $attrs = array()) {
}
$tmpVars = $flash['params'];
$tmpVars['message'] = $message;
$tmpVars['key'] = $key;
$out = $this->_View->element($flash['element'], $tmpVars, $options);
}
}

0 comments on commit 9eafde1

Please sign in to comment.
You can’t perform that action at this time.