aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AdminPanel/Rpmdragora
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2015-01-03 15:33:09 +0100
committerAngelo Naselli <anaselli@linux.it>2015-01-03 15:33:09 +0100
commitfdb86f8297c6733ef463d9d1c3d987cd23e734e7 (patch)
tree235bc5bcfd6584e1fbb50f3305c2d92bbbad4810 /lib/AdminPanel/Rpmdragora
parenta7633eaac5afd96a7662cabec330ba25b2b26b43 (diff)
downloadmanatools-fdb86f8297c6733ef463d9d1c3d987cd23e734e7.tar
manatools-fdb86f8297c6733ef463d9d1c3d987cd23e734e7.tar.gz
manatools-fdb86f8297c6733ef463d9d1c3d987cd23e734e7.tar.bz2
manatools-fdb86f8297c6733ef463d9d1c3d987cd23e734e7.tar.xz
manatools-fdb86f8297c6733ef463d9d1c3d987cd23e734e7.zip
removed deprecated POSIX isdigit
Diffstat (limited to 'lib/AdminPanel/Rpmdragora')
-rw-r--r--lib/AdminPanel/Rpmdragora/icon.pm9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/AdminPanel/Rpmdragora/icon.pm b/lib/AdminPanel/Rpmdragora/icon.pm
index b4a97c09..c7def86e 100644
--- a/lib/AdminPanel/Rpmdragora/icon.pm
+++ b/lib/AdminPanel/Rpmdragora/icon.pm
@@ -25,7 +25,6 @@ package AdminPanel::Rpmdragora::icon;
# $Id: icon.pm 237459 2008-02-26 14:20:47Z tv $
use strict;
-use POSIX qw (isdigit);
use AdminPanel::rpmdragora;
use AdminPanel::Shared::Locales;
@@ -214,12 +213,8 @@ my %group_icons = (
sub get_icon_path {
my ($group, $parent) = @_;
- my $path;
- if(isdigit($parent) && $parent == 0){
- $path = '/usr/share/icons/';
- }else{
- $path = '/usr/share/icons/mini/';
- }
+
+ my $path = $parent ? '/usr/share/icons/mini/' : '/usr/share/icons/';
my $icon_path = "";
if(defined($group_icons{$group})){
$icon_path = join('', $path, $group_icons{$group}, '.png');