Revision 4ee1cfb0
Von Sven Schöling vor fast 10 Jahren hinzugefügt
SL/Layout/Top.pm | ||
---|---|---|
8 | 8 |
|
9 | 9 |
$self->presenter->render('menu/header', |
10 | 10 |
now => DateTime->now_local, |
11 |
is_fastcgi => scalar($::dispatcher->interface_type =~ /fastcgi/i),
|
|
11 |
is_fastcgi => $::dispatcher ? scalar($::dispatcher->interface_type =~ /fastcgi/i) : (),
|
|
12 | 12 |
is_links => scalar($ENV{HTTP_USER_AGENT} =~ /links/i), |
13 | 13 |
); |
14 | 14 |
} |
Auch abrufbar als: Unified diff
Layout: Tests schlagen fehl, weil Top auf $::dispatcher zugreift