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:
abb346b
)
Menu: Nur yaml Dateien einlesen
author
Sven Schöling
<s.schoeling@linet-services.de>
Tue, 8 Sep 2015 13:43:34 +0000
(15:43 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Tue, 8 Sep 2015 13:43:34 +0000
(15:43 +0200)
Ansonsten machen Tempdateien von Editoren das Programm kaputt
SL/Menu.pm
patch
|
blob
|
history
diff --git
a/SL/Menu.pm
b/SL/Menu.pm
index
8cc9c7e
..
f01b341
100644
(file)
--- 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 = [];