From 7575c5fab08fc46d5eec918473e20a262a2177cf Mon Sep 17 00:00:00 2001 From: David Grudl Date: Tue, 9 Jun 2020 02:49:02 +0200 Subject: [PATCH] Presenter: life-time of flash message is always 30sec --- src/Application/UI/Presenter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Application/UI/Presenter.php b/src/Application/UI/Presenter.php index c22c4adc1..73aff23ad 100644 --- a/src/Application/UI/Presenter.php +++ b/src/Application/UI/Presenter.php @@ -261,7 +261,7 @@ public function run(Application\Request $request): Application\IResponse } if ($this->hasFlashSession()) { - $this->getFlashSession()->setExpiration($this->response instanceof Responses\RedirectResponse ? '+ 30 seconds' : '+ 3 seconds'); + $this->getFlashSession()->setExpiration('30 seconds'); } if (!$this->response) {