X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/7e0814bb34ae9e6c424aa10e37ccb9ca4541fc49..b293ff8ad52fc76ba0c44783e3982418114d6b08:/SL/Template.pm diff --git a/SL/Template.pm b/SL/Template.pm index 903ea90d8..b20a7b1a3 100644 --- a/SL/Template.pm +++ b/SL/Template.pm @@ -19,7 +19,6 @@ use SL::Template::LaTeX; use SL::Template::OpenDocument; use SL::Template::PlainText; use SL::Template::ShellCommand; -use SL::Template::XML; sub create { my %params = @_; @@ -47,12 +46,12 @@ sub available_templates { my @alldir = sort grep { -d ($::lx_office_conf{paths}->{templates} . "/$_") && !/^\.\.?$/ - && !m/\.(?:html|tex|sty|odt|xml|txb)$/ - && !m/^(?:webpages$|print$|mail$|\.)/ + && !m/\.(?:html|tex|sty|odt)$/ + && !m/^(?:webpages$|mobile_webpages$|pdf$|print$|mail$|\.)/ } keys %dir_h; tie %dir_h, 'IO::Dir', "$::lx_office_conf{paths}->{templates}/print"; - my @allmaster = ('Standard', sort grep { -d ("$::lx_office_conf{paths}->{templates}/print" . "/$_") && !/^\.\.?$/ && !/^Standard$/ } keys %dir_h); + my @allmaster = (sort grep { -d ("$::lx_office_conf{paths}->{templates}/print" . "/$_") && !/^\.\.?$/ && !/^Standard$/ } keys %dir_h); return ( print_templates => \@alldir,