my ($self, %params) = @_;
my $form = Form->new('');
my %create_params = (
- variables => $form,
- return => 'file_name',
+ variables => $form,
+ return => 'file_name',
);
## find_template may return a list !
$create_params{template} = $self->find_template(name => $params{variables}->{formname}, printer_id => $params{printer_id});
push @options, sprintf('%s={%s}', $name, $value); # TODO: escaping
};
- $add_opt->('ucfilespec', $embed_name);
- $add_opt->('desc', $file->{description});
- $add_opt->('afrelationship', $file->{relationship});
- $add_opt->('mimetype', $file->{mime_type});
+ $add_opt->('ucfilespec', $embed_name);
+ $add_opt->('desc', $file->{description});
+ $add_opt->('afrelationship', $file->{relationship});
+ $add_opt->('mimetype', $file->{mime_type});
return sprintf('\embedfile[%s]{%s}', join(',', @options), $file_name);
}