From 4ee1cfb08ed71173331fe2de06e83a5b2b81e6a2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 4 Dec 2014 19:04:58 +0100 Subject: [PATCH] Layout: Tests schlagen fehl, weil Top auf $::dispatcher zugreift --- SL/Layout/Top.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Layout/Top.pm b/SL/Layout/Top.pm index 53a8de794..165134ddc 100644 --- a/SL/Layout/Top.pm +++ b/SL/Layout/Top.pm @@ -8,7 +8,7 @@ sub pre_content { $self->presenter->render('menu/header', now => DateTime->now_local, - is_fastcgi => scalar($::dispatcher->interface_type =~ /fastcgi/i), + is_fastcgi => $::dispatcher ? scalar($::dispatcher->interface_type =~ /fastcgi/i) : (), is_links => scalar($ENV{HTTP_USER_AGENT} =~ /links/i), ); } -- 2.20.1