Skip to content

Commit

Permalink
fix: syntax on display_icon
Browse files Browse the repository at this point in the history
  • Loading branch information
dipietroR committed Jun 22, 2022
1 parent b1bc521 commit 2088cdb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Binary file added lib/ProductOpener/.Display.pm.swo
Binary file not shown.
11 changes: 9 additions & 2 deletions lib/ProductOpener/Display.pm
Original file line number Diff line number Diff line change
Expand Up @@ -10637,10 +10637,17 @@ sub display_change($$) {
return "<li><a href=\"$product_url\">" . $change_ref->{code} . "</a>; $date - $user ($comment) [$diffs] - <a href=\"" . $product_url . "?rev=$change_rev\">" . lang("view") . "</a></li>\n";
}


=head2 display_icon ( $icon )
Displays icons (e.g., the camera icon "Picture with barcode", the graph and maps button, etc)
=cut

our %icons_cache = ();
sub display_icon {
sub display_icon($) {

my ($icon) = @_;
my $icon = shift;

my $svg = $icons_cache{$icon};

Expand Down

0 comments on commit 2088cdb

Please sign in to comment.