From b8db269cbc8beb403ef1fef7868402a0ffeb4b65 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 8 Sep 2015 15:43:34 +0200 Subject: [PATCH] Menu: Nur yaml Dateien einlesen Ansonsten machen Tempdateien von Editoren das Programm kaputt --- SL/Menu.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Menu.pm b/SL/Menu.pm index 8cc9c7e06..f01b341be 100644 --- a/SL/Menu.pm +++ b/SL/Menu.pm @@ -21,7 +21,7 @@ sub new { my $path = File::Spec->catdir('menus', $domain); opendir my $dir, $path or die "can't open $path: $!"; - my @files = sort grep -f "$path/$_", readdir $dir; + my @files = sort grep -f "$path/$_", grep /\.yaml$/, readdir $dir; close $dir; my $nodes = []; -- 2.20.1