summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-12-30 02:28:34 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-12-30 02:28:34 +0100
commitfadbc76951d77858a2077622af6b944e2a96abb7 (patch)
tree3ac43245d4453d3090e76f4b7bbbffbeb8c129be
parentf912957ee40cd3ab3de7d18794ecbe03e57a7cd0 (diff)
downloadmgaonline-fadbc76951d77858a2077622af6b944e2a96abb7.tar
mgaonline-fadbc76951d77858a2077622af6b944e2a96abb7.tar.gz
mgaonline-fadbc76951d77858a2077622af6b944e2a96abb7.tar.bz2
mgaonline-fadbc76951d77858a2077622af6b944e2a96abb7.tar.xz
mgaonline-fadbc76951d77858a2077622af6b944e2a96abb7.zip
(translate_product) annotate the parameter as being optional
thus fixing a warning in mgaapplet-config
-rw-r--r--mgaonline.pm6
1 files changed, 3 insertions, 3 deletions
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