From e5a243a52b910e35b10b26c06aa8978356b86769 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 2 Dec 2023 14:14:34 +0100 Subject: login and events --- src/View.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/View.php') diff --git a/src/View.php b/src/View.php index 5f9ca34..7862b12 100644 --- a/src/View.php +++ b/src/View.php @@ -24,6 +24,8 @@ class View self::$twig->addFilter(new TwigFilter('buildTime', function ($buildTime) { return @sprintf('%02d:%02d:%02d', $buildTime / 3600, ($buildTime / 60) % 60, $buildTime % 60); })); + + self::$twig->addGlobal('session', $_SESSION); } /** -- cgit v1.2.3