From: Sven Schöling Date: Tue, 8 Sep 2015 13:43:34 +0000 (+0200) Subject: Menu: Nur yaml Dateien einlesen X-Git-Tag: release-3.4.1~745 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=b8db269cbc8beb403ef1fef7868402a0ffeb4b65;p=kivitendo-erp.git Menu: Nur yaml Dateien einlesen Ansonsten machen Tempdateien von Editoren das Programm kaputt --- 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 = [];