aboutsummaryrefslogtreecommitdiffstats
path: root/Category.pm
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-01-06 19:59:29 +0100
committerAngelo Naselli <anaselli@linux.it>2014-01-06 19:59:29 +0100
commite4abf51415f1871a29f81b2c033fda0cb64a276a (patch)
treeddca8e169a4c2724bf4257c0955ec035bd35d479 /Category.pm
parent00950d42d1eaed19349aecfbc3ff2fe34ee7c905 (diff)
downloadcolin-keep-e4abf51415f1871a29f81b2c033fda0cb64a276a.tar
colin-keep-e4abf51415f1871a29f81b2c033fda0cb64a276a.tar.gz
colin-keep-e4abf51415f1871a29f81b2c033fda0cb64a276a.tar.bz2
colin-keep-e4abf51415f1871a29f81b2c033fda0cb64a276a.tar.xz
colin-keep-e4abf51415f1871a29f81b2c033fda0cb64a276a.zip
- Admin service is now splitted (gui and utility)
- Admin service extends Module - fixed load modules from categories.conf.d
Diffstat (limited to 'Category.pm')
-rw-r--r--Category.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Category.pm b/Category.pm
index 69eafc6..7191fab 100644
--- a/Category.pm
+++ b/Category.pm
@@ -68,9 +68,10 @@ sub new {
#=============================================================
sub loadModule {
my ($self, $module) = @_;
-
+
if (!$self->moduleLoaded($module)) {
push ( @{$self->{modules}}, $module );
+
return 1;
}
return 0;