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:
5b38344
)
Die Drop-Down-Box "Benutze Vorlagen" wirklich nur mit Verzeichnissen füllen und zusät...
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Fri, 22 Dec 2006 09:15:12 +0000
(09:15 +0000)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Fri, 22 Dec 2006 09:15:12 +0000
(09:15 +0000)
bin/mozilla/admin.pl
patch
|
blob
|
history
diff --git
a/bin/mozilla/admin.pl
b/bin/mozilla/admin.pl
index
b2f7576
..
76513b0
100644
(file)
--- a/
bin/mozilla/admin.pl
+++ b/
bin/mozilla/admin.pl
@@
-440,11
+440,11
@@
sub form_header {
}
opendir TEMPLATEDIR, "$templates/." or $form->error("$templates : $!");
- @all = grep
!/^\.\.?$/, readdir TEMPLATEDIR
;
+ @all = grep
({ !/^\.\.?$/ && -d "$templates/$_" } readdir(TEMPLATEDIR))
;
closedir TEMPLATEDIR;
@allhtml = sort grep /\.html/, @all;
- @alldir = grep !/\.(html|tex|sty|odt)$/, @all;
+ @alldir = grep !/\.(html|tex|sty|odt
|xml|txb
)$/, @all;
@alldir = grep !/^(webpages|\.svn)$/, @alldir;
@allhtml = reverse grep !/Default/, @allhtml;