From baf1e8957f7f56fb46e849fff966e3490726097b Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 6 Mar 2013 10:34:42 +0100 Subject: [PATCH] Bei nicht gefundenen JavaScript-Dateien keine Links erzeugen --- SL/Layout/Base.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Layout/Base.pm b/SL/Layout/Base.pm index de94ee054..bd08d8164 100644 --- a/SL/Layout/Base.pm +++ b/SL/Layout/Base.pm @@ -130,7 +130,7 @@ sub use_javascript { sub javascripts { my ($self) = @_; - return uniq map { $self->_find_javascript($_) } + return uniq grep { $_ } map { $self->_find_javascript($_) } map({ $_->javascripts } $self->sub_layouts), $self->use_javascript; } -- 2.20.1