We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a52a3aa commit 8f62483Copy full SHA for 8f62483
1 file changed
core/View.php
@@ -66,9 +66,7 @@ private static function legacyRenderTemplate($template, $args = [])
66
$loader = new \Twig\Loader\FilesystemLoader(dirname(__DIR__) . '/app/Views');
67
$twig = new \Twig\Environment($loader);
68
69
- // Kompresja HTML
70
- $minifier = new \voku\helper\HtmlMin();
71
- $twig->addExtension(new \voku\twig\MinifyHtmlExtension($minifier));
+ // Używamy natywnego Twig spaceless tag dla kompresji HTML
72
$twig->addGlobal('userinfo', $_SESSION['userinfo'] ?? null);
73
$twig->addGlobal('frontend_url', $_ENV['FRONTEND_URL'] ?? null);
74
$twig->addGlobal('csrf_token', $csrf_token);
0 commit comments