Skip to content
Snippets Groups Projects
Commit 3bb6a889 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Destroy messages after having shown them once now.

parent 5fe68332
Branches
No related tags found
No related merge requests found
......@@ -39,6 +39,7 @@ class RendererHelper {
$translation = $this->translator->loadTranslation($this->translator->findMatchingLanguage($_SERVER['HTTP_ACCEPT_LANGUAGE']));
$viewHelper = new ViewHelper($translation, array_merge($this->sessionHelper->vars, $vars));
$viewHelper->render($template);
$this->sessionHelper->vars = [];
}
public function redirect(string $page, array $vars = []) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment