projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68dbf4a
)
Layout: Tests schlagen fehl, weil Top auf $::dispatcher zugreift
author
Sven Schöling
<s.schoeling@linet-services.de>
Thu, 4 Dec 2014 18:04:58 +0000
(19:04 +0100)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Thu, 4 Dec 2014 18:07:11 +0000
(19:07 +0100)
SL/Layout/Top.pm
patch
|
blob
|
history
diff --git
a/SL/Layout/Top.pm
b/SL/Layout/Top.pm
index
53a8de7
..
165134d
100644
(file)
--- 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),
);
}