From 272848541ed452d6e39f70f88f08f0eb4f94ce9b Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 24 Apr 2012 11:50:05 +0200 Subject: [PATCH] Kosmetik: Templatenamen in Fehlermeldung nicht doppelt ausgeben --- bin/mozilla/io.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index 022f039ee..c44b525a2 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -38,6 +38,7 @@ use Carp; use CGI; +use List::MoreUtils qw(uniq); use List::Util qw(min max first); use SL::CVar; @@ -1504,6 +1505,7 @@ sub print_form { push @template_files, "$form->{formname}$form->{language}$printer_code.$extension"; push @template_files, "$form->{formname}.$extension"; push @template_files, "default.$extension"; + @template_files = uniq @template_files; $form->{IN} = undef; for my $filename (@template_files) { -- 2.20.1