projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Umwandlung von Kunden- in Lieferantenauftag und umgekehrt: prepare_order erwartet...
[kivitendo-erp.git]
/
bin
/
mozilla
/
admin.pl
diff --git
a/bin/mozilla/admin.pl
b/bin/mozilla/admin.pl
index
20bb280
..
6ac2a51
100644
(file)
--- a/
bin/mozilla/admin.pl
+++ b/
bin/mozilla/admin.pl
@@
-440,11
+440,12
@@
sub form_header {
}
opendir TEMPLATEDIR, "$templates/." or $form->error("$templates : $!");
}
opendir TEMPLATEDIR, "$templates/." or $form->error("$templates : $!");
- @all = grep({ !/^\.\.?$/ && -d "$templates/$_" } readdir(TEMPLATEDIR));
+ my @all = readdir(TEMPLATEDIR);
+ my @alldir = sort(grep({ -d "$templates/$_" && !/^\.\.?$/ } @all));
+ my @allhtml = sort(grep({ -f "$templates/$_" && /\.html$/ } @all));
closedir TEMPLATEDIR;
closedir TEMPLATEDIR;
- @allhtml = sort grep /\.html/, @all;
- @alldir = grep !/\.(html|tex|sty|odt|xml|txb)$/, @all;
+ @alldir = grep !/\.(html|tex|sty|odt|xml|txb)$/, @alldir;
@alldir = grep !/^(webpages|\.svn)$/, @alldir;
@allhtml = reverse grep !/Default/, @allhtml;
@alldir = grep !/^(webpages|\.svn)$/, @alldir;
@allhtml = reverse grep !/Default/, @allhtml;
@@
-473,7
+474,7
@@
sub form_header {
}
opendir CSS, "css/.";
}
opendir CSS, "css/.";
- @all =
grep /.*\.css$/, readdir CSS
;
+ @all =
sort(grep({ /\.css$/ && ($_ ne "tabcontent.css") } readdir(CSS)))
;
closedir CSS;
foreach $item (@all) {
closedir CSS;
foreach $item (@all) {
@@
-483,7
+484,6
@@
sub form_header {
$selectstylesheet .= qq|<option>$item\n|;
}
}
$selectstylesheet .= qq|<option>$item\n|;
}
}
- $selectstylesheet .= "<option>\n";
$form->header;
$form->header;