aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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');