From fadbc76951d77858a2077622af6b944e2a96abb7 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 30 Dec 2013 02:28:34 +0100 Subject: (translate_product) annotate the parameter as being optional thus fixing a warning in mgaapplet-config --- mgaonline.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mgaonline.pm') diff --git a/mgaonline.pm b/mgaonline.pm index 9c407deb..62b7fe4a 100644 --- a/mgaonline.pm +++ b/mgaonline.pm @@ -140,15 +140,15 @@ sub fork_exec { } sub translate_product { - my ($product) = @_; + my ($o_product) = @_; my %strings = ( flash => N("Mageia Flash"), free => N("Mageia Free"), mini => N("Mageia Mini"), one => N("Mageia One"), ); - $product ||= lc $product_id->{product}; - $strings{$product} || $product; + $o_product ||= lc $product_id->{product}; + $strings{$o_product} || $o_product; } # TODO Move all product.id handling to a separate module -- cgit v1.2.1