Revision 954e1105
Von Moritz Bunkus vor mehr als 12 Jahren hinzugefügt
bin/mozilla/io.pl | ||
---|---|---|
1506 | 1506 |
push @template_files, "$form->{formname}.$extension"; |
1507 | 1507 |
push @template_files, "default.$extension"; |
1508 | 1508 |
@template_files = uniq @template_files; |
1509 |
|
|
1510 |
$form->{IN} = undef; |
|
1511 |
for my $filename (@template_files) { |
|
1512 |
if (-f "$myconfig{templates}/$filename") { |
|
1513 |
$form->{IN} = $filename; |
|
1514 |
last; |
|
1515 |
} |
|
1516 |
} |
|
1509 |
$form->{IN} = first { -f "$myconfig{templates}/$_" } @template_files; |
|
1517 | 1510 |
|
1518 | 1511 |
if (!defined $form->{IN}) { |
1519 | 1512 |
$::form->error($::locale->text('Cannot find matching template for this print request. Please contact your template maintainer. I tried these: #1.', join ', ', map { "'$_'"} @template_files)); |
Auch abrufbar als: Unified diff
Kosmetik: Codevereinfachung