my $content_type = $options->{type} eq 'js' ? 'text/javascript' : 'text/html';
print $::form->create_http_response(content_type => $content_type,
- charset => $::dbcharset || Common::DEFAULT_CHARSET);
+ charset => $::dbcharset || Common::DEFAULT_CHARSET());
} else {
$::form->{title} = $locals{title} if $locals{title};
As cross expects an array but returns a list it is not directly chainable
at the moment. This will be corrected in the future.
-=back
-
=item ary_to_hash INDEX_KEY, VALUE_KEY, ARRAY
Returns a hash with the content of ARRAY based on the values of
package SL::Printer;
+use strict;
+
use SL::DBUtils;
sub all_printers {
'attachment_basename' => $locale->text('bankaccounts') . strftime('_%Y%m%d', localtime time),
);
$report->set_options_from_form();
- $locale->set_numberformat_wo_thousands_separator(\%myconfig) if lc($report->{options}->{output_format}) eq 'csv';
+ $locale->set_numberformat_wo_thousands_separator(\%::myconfig) if lc($report->{options}->{output_format}) eq 'csv';
$report->set_columns(%column_defs);
$report->set_column_order(@columns);
my $name;
my $headerrow;
if ( $form->{mainsort} eq 'parts_id' ) {
- $headerrow->{description}->{data} = "$ar->{description}";
+ $headerrow->{description}->{data} = "$ar->{description}";
} else {
- $headerrow->{description}->{data} = "$ar->{name}";
+ $headerrow->{description}->{data} = "$ar->{name}";
};
$headerrow->{description}->{class} = "listmainsortheader";
my $headerrow_set = [ $headerrow ];
# test master files for <translate> tag
foreach my $ref (@Support::Templates::referenced_files) {
- my $file = "${template_path}${ref}_master.html";
+ my $file = "${template_path}${ref}.html";
my $data = read_file($file) || die "??? couldn't open $file";
if ($data =~ /<translate>/) {
ok(0, "$file uses deprecated <translate> tags.");