diff options
author | Angelo Naselli <anaselli@linux.it> | 2015-01-03 15:33:09 +0100 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2015-01-03 15:33:09 +0100 |
commit | fdb86f8297c6733ef463d9d1c3d987cd23e734e7 (patch) | |
tree | 235bc5bcfd6584e1fbb50f3305c2d92bbbad4810 /lib/AdminPanel/Rpmdragora | |
parent | a7633eaac5afd96a7662cabec330ba25b2b26b43 (diff) | |
download | manatools-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.pm | 9 |
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'); |