File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -33,11 +33,11 @@ class FlashHelper extends \Cake\View\Helper\FlashHelper {
33
33
* {@inheritDoc}
34
34
*/
35
35
public function render ($ key = 'flash ' , array $ options = []) {
36
- if (!$ this ->request ->getSession ()->check ("Flash. $ key " )) {
36
+ if (!$ this ->getView ()-> getRequest () ->getSession ()->check ("Flash. $ key " )) {
37
37
return ;
38
38
}
39
39
40
- $ flash = $ this ->request ->getSession ()->read ("Flash. $ key " );
40
+ $ flash = $ this ->getView ()-> getRequest () ->getSession ()->read ("Flash. $ key " );
41
41
if (!is_array ($ flash )) {
42
42
throw new \UnexpectedValueException (sprintf (
43
43
'Value for flash setting key "%s" must be an array. ' ,
@@ -49,7 +49,7 @@ public function render($key = 'flash', array $options = []) {
49
49
$ message ['element ' ] = 'Bootstrap. ' .$ message ['element ' ];
50
50
}
51
51
}
52
- $ this ->request ->getSession ()->write ("Flash. $ key " , $ flash );
52
+ $ this ->getView ()-> getRequest () ->getSession ()->write ("Flash. $ key " , $ flash );
53
53
54
54
return parent ::render ($ key , $ options );
55
55
}
You can’t perform that action at this time.
0 commit comments